Re: odd problem
| From: | Jack | Date: | Mon, 24 Mar 2003 06:57:31 +0000 |
| Subject: | Re: odd problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140806@lists.php.net to get a copy of this message | ||
"Sebastian" <sebastian@dslr.net> wrote:
> 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]'");
>
> }
from where do you get this: $HTTP_GET_VARS[comment] ?? ( GET <--> POST, 'comment'? )
> 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?
looks ok