Re: [PHP-DB] Re: Example of mail()

2006-04-30 Thread Julien Bonastre
Renzo Clavijo wrote: I know it's very simple but the question is: How can I erase the values held in $_REQUEST such that when I press F5 or I click Reload there are no messages sent again? ?php if(isset($_REQUEST['send_mail'])){

[PHP-DB] Re: Example of mail()

2006-04-30 Thread JeRRy
Hi, Why not use cookies to check if the user has pressed F5 or refreshed the page? There is a number of ways to do this, all should work effectively depending on your how many people hit the page etc. a) Store the message in a cookie, and run PHP code to check before executing

Re: [PHP-DB] Re: Example of mail()

2006-04-29 Thread John Hicks
Renzo Clavijo wrote: I know it's very simple but the question is: How can I erase the values held in $_REQUEST such that when I press F5 or I click Reload there are no messages sent again? ?php if(isset($_REQUEST['send_mail'])){

[PHP-DB] Re: Example of mail()

2006-04-28 Thread benmoreassynt
Renzo Clavijo wrote: ?php if(isset($_REQUEST['send_mail'])){ mail($_REQUEST['address_mail'],$_REQUEST['subject'] $_REQUEST['message']); } I would try something like this: if(isset($_REQUEST['send_mail'])) { mail($_REQUEST['address_mail'],$_REQUEST['subject']

[PHP-DB] Re: Example of mail()

2006-04-28 Thread benmoreassynt
benmoreassynt wrote: I would try something like this: if(isset($_REQUEST['send_mail'])) { mail($_REQUEST['address_mail'],$_REQUEST['subject'] $_REQUEST['message']); unset($_REQUEST); } As a follow up, if you want to use that in a public environment,