Re: Database insert/update from Browser Refresh or Back/Forward Button
| From: | Scott Fletcher | Date: | Fri, 20 Feb 2004 17:34:12 +0000 |
| Subject: | Re: Database insert/update from Browser Refresh or Back/Forward Button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178372@lists.php.net to get a copy of this message | ||
>Why is "Browser Refresh & Back/Forward Button" capitalized? Is that the
name of a
>band or something???
Well, forgot to enclose the double quote. Old Habit with capitalization on
commonly used term...
>Are you trying to process a form a something and you want to prevent the
>browser from processing the form when the user clicks the back button?
>If that's the case I have a solution for you. The way I get around this
>is to have two separate pages that display and process the form. The
>first page displays the form and the second page processes it. When the
>second page is done processing the form it will redirect the user to
>wherever they need to go next.
>The second page never becomes a part of the browsers history so the user
>can click the back/refresh buttons all they want and the form will not
>be processed more than you want it to be. Actually that's not totally
>true because the user could go back and resubmit the form.
That's a fine idea!! Wish I had thought of that 11 months ago when I first
developed this website and eliminate lot of unneccessnary codes... Thanks
for this idea... I'll remember it for future projects...
FletchSOD