"Sebastian" <[EMAIL PROTECTED]> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to