You are here: Re: Avoiding double-submissions with mail script « PHP Programming Language « IT news, forums, messages
Re: Avoiding double-submissions with mail script

Posted by Gordon Burditt on 02/01/06 22:27

>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.)

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.

Gordon L. Burditt

 

Navigation:

[Reply to this 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

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