Re: Allowing refresh without form processing?

From: Date: Wed, 25 Jul 2001 14:20:52 +0000
Subject: Re: Allowing refresh without form processing?
Groups: php.db 
Request: Send a blank email to php-db+get-10751@lists.php.net to get a copy of this message
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 <xtremist@xmission.com> To: php-db@lists.php.net <php-db@lists.php.net> 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: php-db-unsubscribe@lists.php.net >For additional commands, e-mail: php-db-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#10751) next »