Reply to Re: simple msg board--isolating page refresh

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация