hello all,
having a little problem. I know i have a connection to the mysql database
but for some reason i can't get this to update the database when submit is
clicked. perhaps i am overlooking something.. Here is part of the script:
if($HTTP_POST_VARS[send]) {
$result = $db->sql("UPDATE comments SET reported = '1' WHERE id =
'$HTTP_GET_VARS[comment]'");
}
// some echos..
echo "
<form action=\"report.php\" method=\"post\">
<input type=\"hidden\" name=\"send\" value=\"done\">
<input type=\"submit\" value=\"send\">
</form>";
Its suppose to update mysql once the submit button is pressed, but its not..
Is the form ok?
cheers,
- Sebastian