Posted by Hary on 10/12/87 11:38
Nice solution to use a send page....
very thanx
"J.O. Aho" <user@example.net> wrote in message
news:441r46F1q0o9rU1@individual.net...
> 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
Navigation:
[Reply to this message]
|