"Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What's the best way of emptying my variables once my form has done with them > because although I disconnect from the database if the user refreshes the > screen it sends another e-mail to me.
Even when you reset all variables on the page (e.g. with $_POST = array()) the user can always refresh and therefore re-submit your form. To avoid this you could do a redirect after processing the form: // process form here header('location: ' . $_SERVER['PHP_SELF']); exit; Of course then you will have to pass any notices for the user via get (or store it in a session variable). Hope this helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php