Reply to Re: unsetting

Your name:

Reply:


Posted by Shelly on 11/15/06 20:24

"Michael Fesser" <netizen@gmx.de> wrote in message
news:3anml2dbf4r7t6e82q4417083r968tepkm@4ax.com...
> .oO(Shelly)
>
>>If I do a submit and have it come back to the same page, all is fine. If
>>I
>>now click the browser refresh button, I get another submittal. How do I
>>"unset" the status so that it doesn't think I clicked the submit button
>>when
>>I click the refresh button?
>
> After processing the form data use a header() call to redirect the
> browser to the same page. If you hit refresh then, the browser just
> sends a normal GET instead of repeating his previous POST request.

Befoe I fixed it with Jerry's suggestion to send it to another page for
processing and then have that send it back when done, I had a header
statement going to the same page. A refresh STILL resulted in another post
because it passed the isset($_POST['theButton']) test. So, if it sends a
normal GET instead of a POST, why did it still satisfy that isset test?

Shelly

[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

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