odd problem

From: Date: Mon, 24 Mar 2003 06:08:15 +0000
Subject: odd problem
Groups: php.general 
Request: Send a blank email to php-general+get-140802@lists.php.net to get a copy of this message
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

« previous php.general (#140802) next »