Reply to Re: Avoiding double-submissions with mail script

Your name:

Reply:


Posted by Jim Dornbos on 02/02/06 20:01

On Wed, 01 Feb 2006 20:27:06 -0000, gordonb.q95s8@burditt.org (Gordon
Burditt) wrote:
>>quote from Jim
>>From one newb to another... in addtion to mailing the message, I would
>>unset a couple of (all?) your $_POST values. Then add some code prior
>>to mailing to make sure they have values. Hitting submit once would
>>send the message. Hitting submit a second time would throw up your
>>error message about missing values (because you just wiped them out.)
>
>quote from Gordon
>Unsetting $_POST values has no effect whatever on the next submission,
>for much the same reason that drawing a beard on a photograph of
>you doesn't give you a beard. Consider $_POST as read-only, although
>you *CAN* alter it, it gets thrown away once your script is finished
>running.

Thanks for catching me on that, Gordon. I used unset() for a logout
page... but just enough of the details were sticking with me to get me
in trouble.

Jim

[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

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