Stop $_POST from having the same value when I refresh
Posted
by Cortopasta
on Stack Overflow
See other posts from Stack Overflow
or by Cortopasta
Published on 2010-06-07T22:55:27Z
Indexed on
2010/06/07
23:02 UTC
Read the original article
Hit count: 189
When a vote value is changed, the form POSTs the change, then refreshes the page. This is called on the top of the page upon load:
if (isset($_POST['q'.$question_id]))
{
$user->updateQuestionVotes($question_id, $_POST['q'.$question_id]);
}
Why does it update every time I refresh after the first time? Do I need to unset it somehow?
© Stack Overflow or respective owner