Ive added a comment system to my site so my members can leave comments about the page they are on.
My problem is im not sure why the form is sending the data to the TOP of the table in the database. Every other form/table i have in mysql the data is sent to the bottom.
Any ideas?
My form:
<FORM action=\"guest.php?menulink=View&pid=".$pid."&Comment=Add \" method=POST>
<input type=\"hidden\" name=\"name\" value=\" ". $_SESSION['username'] ."\"><BR>
<input type=\"hidden\" name=\"date\" value=\" ". date( 'Y-m-d H:i:s' )."\">
Poster: ". $_SESSION['username'] ."<BR>:: 250 Characters Max ::<BR>
<TEXTAREA cols=\"40\" rows=\"5\" name=\"comment\"></TEXTAREA><BR>
<input type=\"submit\" name=\"submit\" value=\"Add Comment\"
</FORM>
The insert:
$query = "INSERT INTO js_content_comments VALUES('',$pid,'{$_POST['name']}', '{$_POST['comment']}', '{$_POST['date']}')";
mysql_query($query);
My table:
id int(10) unsigned NOT NULL auto_increment,
news_id int(10) unsigned DEFAULT '0' NOT NULL,
name varchar(40) NOT NULL,
comment text NOT NULL,
PRIMARY KEY (id)