[PHP] hrm...only hit submit once

2001-02-27 Thread Kurth Bemis
i have a form set that my users can fill out thier information. at the end of the process the results are mailed to an email address. then only problem is that reloads the page the mail is send again. this can be a problem...any ideas on how to prevent it?? ~kurth -- PHP General Mailing

Re: [PHP] hrm...only hit submit once

2001-02-27 Thread Chris Lee
?php include_once('session.egn'); if (isset($HTTP_POST_VARS['submit'])) if ( isset($HTTP_SESSION_VARS['done']) AND $HTTP_SESSION_VARS['done'] == $PHP_SELF) { echo "a br\n"; echo "You can only press submit once br\n"; exit(); } else { echo "b br\n"; $done = $PHP_SELF;