|
Posted by d on 10/12/17 11:37
"joeblow" <momo_roadracer@yahoo.com> wrote in message
news:11sipq1ncri196@corp.supernews.com...
> Hello,
>
> I'm having the hardest time clearing the values in the $_POST[] variables
> so
> that if the page is refreshed, it does not re-enter the same values into
> MySQL.
>
> I've tried "unset($_POST[])" -- now might be a good time to reveal my
> newbie
> status.
>
> Does PHP recognize a page refresh? Or will I have to check against
> duplicate
> entries?
>
> Thanks for any advice, it's appreciated.
>
> I'll be back Tuesday. All the best...
>
> jb
>
>
The simplest way to do it is to have your script, after it's processed the
$_POST data, use a header("location: "); to bounce the user back to that
very same page. Hey presto - press F5 all you want, no more data to post.
It works great.
[Back to original message]
|