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'])){
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
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'])){
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']
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,