Re: another redirecting question

From: Date: Mon, 02 Jun 2003 17:38:32 +0000
Subject: Re: another redirecting question
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-28236@lists.php.net to get a copy of this message
Hi Grant.. I've tested it and it doesn't resubmit this information a second time. I have a page called submit.php where users can upload pictures. Once they submit, it goes to submitpics.php for processing and creates a session. Then it's redirected to submit.php which reads the session and destroys it after it read it. All in all, it is as if submitpics.php never existed. metin At 10:52 AM 5/30/2003 -0500, Grant Rutherford wrote:
Hi I did actually encounter that problem. However, wouldn't redirecting properly still allow the user to resubmit the information using the back button? I solved this problem a different way by setting and clearing session variables on entry and exit to a series of pages. Grant On Fri, 2003-05-30 at 10:25, Metin Kale wrote: Well, if you're inserting some data into a database and the person refreshes the page, it would re-insert the data again into the database. Including the page like you did at the end wouldn't change that fundamental problem, hence why you'd want to have it redirect to another page. Metin At 10:20 AM 5/30/2003 -0500, Grant Rutherford wrote:
I'm very new to PHP so somebody correct me please if this is a bad idea... I had the same problem and I ended up just including the second page at the end of the first one: <?php // some stuff (output if necessary) include 'nextpage.php'; die(); ?> Grant On Fri, 2003-05-30 at 09:43, Rick Dahl wrote:
The scripts I need to run before I redirect automatically send output
to the browser. I cannot alter these scripts. Is there a way around
this?
Rick
-- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB Canada R3G 2X6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 204-779-5444 This message is intended solely for the use of the designated recipient(s) and their appointed delegates, and may contain confidential information. Any unauthorized disclosure, copying or distribution of its contents is strictly prohibited. If you have received this message in error, please destroy it and advise the sender immediately by phone, email or facsimile. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#28236) next »