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]
|