Hi,
Name your form submit button somehow, for example
<input type="Submit" name="my_submit_button" value="Submit">

then when the page is refresh check if there is a variable named
$my_submit_button. If there is not than the page is refreshed using the
refresh button or the form was submitted with th "Enter" key.
You will process the form only when there is variable $my_submit_button
which means that someone has pressed the submit button.

Dobromir Velev
-----Original Message-----
From: John Pickett <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, July 25, 2001 4:59 PM
Subject: [PHP-DB] Allowing refresh without form processing?


>Hey,
>
>I have a page where I'd like to allow the client to use their refresh
>button.  The only problem with this is, when they submit a form that's on
>the page, it is parsed by the same page.  So if they hit refresh, the same
>information will be submitted twice (or more).  How can I "clear" out any
>knowledge that a form was submitted?  I've tried adding unset
>($HTTP_POST_VARS); to the bottom of the page but that didn't do anything
for
>it...  Any other ideas?
>
>BTW, I'm asking this because the form uses a db to process and I'm unsure
if
>that may be the issue or not...
>
>My 2 ?
>John Pickett
>http://www.bvstudios.com/
>Co-Author:  Inside Dreamweaver 4
>http://www.amazon.com/exec/obidos/ASIN/0735710848/xtremist
>
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to