Reply to Re: Send mail and refresh page

Your name:

Reply:


Posted by J.O. Aho on 10/12/81 11:38

Hary wrote:
> Hi, I have a php page that validate and send mail.
>
> How can I avoid re-sending the mail.
> The problem is that the visitor can refresh the page
> and that cause the resending the mail...
>
> is there a way to send mail just once?

You could use reference check and cookies or

http://www.php.net/manual/en/reserved.variables.php
http://www.php.net/manual/en/function.setcookie.php


make a extra page which redirects the user to the page that shows the data

form_page -> redirect&sendmail_page -> displaypage

this way when they refresh, they only refresh the displaypage

http://www.php.net/manual/en/reserved.variables.php
http://www.php.net/manual/en/function.header.php


//Aho

[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

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