Re: Example of mail()
| From: | benmoreassynt | Date: | Fri, 28 Apr 2006 20:15:08 +0000 |
| Subject: | Re: Example of mail() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41771@lists.php.net to get a copy of this message | ||
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']
$_REQUEST['message']);
unset($_REQUEST);
}
That should wipe all the variables in $_REQUEST before the user clicks
reload. It will not work on a global variable if you use it inside a
function. There are other ways to do the same thing, but I think that
should do it.
BMA