<form method="post" action="<?php echo $PHP_SELF; ?>">
First name:<input type="Text" name="Author"><br>
Comment:<input type="Text" name="subject"><br>
Address:<input type="Text" name="body"><br>
<input type="Submit" name="submit" value="Submit">
</form>
<?php
if($submit == "submit") {
$id = $get[id];
// i tried $id = $post[id]; and it still did not work
$con = mysql_connect(i took the info here out);
$db = mysql_select_db("pinehead", $con) or die(mysql_error());
$sql = "INSERT INTO comments (body,author,subject,id) VALUES ('$body','$author','$subject', $id)";
$result = mysql_query($sql);
mysql_close($con);
echo "poop";
}
Well this is my code, and for some reason when i click on the submit button it does nothing.
Any new suggestions for me?
Thanks
Anthony