Re: [PHP] How to skip browser's Warning?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is php cconfiguration. Add this to php.ini session.cache_limiter=none [EMAIL PROTECTED] wrote: > Hi, > Could somebody explain to me what to do to skip this message I'm getting > after I search for some products on my page, got the list of products, > selected a detailed view of the product and click on the Back button of > the browser to see again list of found products (result page): > "The Page you are trying to view contains POSTDATA that has expired from > cache. If you resend the data, any action the form carried out such as a > search or online purchase) will be repeated. To resend the data, click OK. > Otherwise, click Cancel." > > Thanks for any help. > > -afan > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFCSZpIo1XmbAXRboRAhSoAKCozvcSHiOAOpsGBkwKY6VqIM8aSACfXiEm rgJwGNM3qRL131lqt5rETJY= =aPUv -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
Wouldn't this actually bring me back to empty form? > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> sorry, but didn't get this one. could you please elaborate it a little >> bi >> to me? >> >> thanks. >> >> >> >> > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi, >> >> Could somebody explain to me what to do to skip this message I'm >> getting >> >> after I search for some products on my page, got the list of >> products, >> >> selected a detailed view of the product and click on the Back button >> of >> >> the browser to see again list of found products (result page): >> >> "The Page you are trying to view contains POSTDATA that has expired >> from >> >> cache. If you resend the data, any action the form carried out such >> as >> a >> >> search or online purchase) will be repeated. To resend the data, >> click >> >> OK. >> >> Otherwise, click Cancel." >> >> >> >> Thanks for any help. >> >> >> >> -afan >> >> >> >> -- >> >> PHP General Mailing List (http://www.php.net/) >> >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> >> If you add a header redirect [header('Location:');] after your script >> > processes the POST data you can avoid this. >> > >> >> Sure.. > > Say you have form.php. This page will post to process.php. (Just an > example. Having form.php post to itself is fine too and how I always do > my > forms since on error I redisplay them with filled values) > > Inside process.php you might have something like > > if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') { > //do processing here > if ( success ) { > header('Location: http://example.com/thanks.php'); > } else { > header('Location: http://example.com/form.php'); > } // if > } // if > > session_write_close(); // if you're using sessions > exit(); > ?> > > Now when your form posts to process, your script will either go back to > the > form.php on error, or thanks.php on success. Because process.php issues a > redirect, this tells the browser to ignore process.php in the history it > saves. If a user clicks the back button it will go to form.php because > process.php returned a 403 header and was "ignored" for lack of a better > word. > > Hope that helps! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Wouldn't this actually bring me back to empty form? > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> sorry, but didn't get this one. could you please elaborate it a little >> bi >> to me? >> >> thanks. >> >> >> >> > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi, >> >> Could somebody explain to me what to do to skip this message I'm >> getting >> >> after I search for some products on my page, got the list of >> products, >> >> selected a detailed view of the product and click on the Back button >> of >> >> the browser to see again list of found products (result page): >> >> "The Page you are trying to view contains POSTDATA that has expired >> from >> >> cache. If you resend the data, any action the form carried out such >> as >> a >> >> search or online purchase) will be repeated. To resend the data, >> click >> >> OK. >> >> Otherwise, click Cancel." >> >> >> >> Thanks for any help. >> >> >> >> -afan >> >> >> >> -- >> >> PHP General Mailing List (http://www.php.net/) >> >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> >> If you add a header redirect [header('Location:');] after your script >> > processes the POST data you can avoid this. >> > >> >> Sure.. > > Say you have form.php. This page will post to process.php. (Just an > example. Having form.php post to itself is fine too and how I always do > my > forms since on error I redisplay them with filled values) > > Inside process.php you might have something like > > if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') { > //do processing here > if ( success ) { > header('Location: http://example.com/thanks.php'); > } else { > header('Location: http://example.com/form.php'); > } // if > } // if > > session_write_close(); // if you're using sessions > exit(); > ?> > > Now when your form posts to process, your script will either go back to > the > form.php on error, or thanks.php on success. Because process.php issues a > redirect, this tells the browser to ignore process.php in the history it > saves. If a user clicks the back button it will go to form.php because > process.php returned a 403 header and was "ignored" for lack of a better > word. > > Hope that helps! > Yes, but I was leaving up to you to fill in the blanks for your implementation. An easy way to handle this is to stick the sanitized post values into the session and go wherever you need to.
Re: [PHP] How to skip browser's Warning?
On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the browser to see again list of found products (result page): >> "The Page you are trying to view contains POSTDATA that has expired from >> cache. If you resend the data, any action the form carried out such as a >> search or online purchase) will be repeated. To resend the data, click >> OK. >> Otherwise, click Cancel." >> >> Thanks for any help. >> >> -afan >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> If you add a header redirect [header('Location:');] after your script > processes the POST data you can avoid this. > Sure.. Say you have form.php. This page will post to process.php. (Just an example. Having form.php post to itself is fine too and how I always do my forms since on error I redisplay them with filled values) Inside process.php you might have something like http://example.com/thanks.php'); } else { header('Location: http://example.com/form.php'); } // if } // if session_write_close(); // if you're using sessions exit(); ?> Now when your form posts to process, your script will either go back to the form.php on error, or thanks.php on success. Because process.php issues a redirect, this tells the browser to ignore process.php in the history it saves. If a user clicks the back button it will go to form.php because process.php returned a 403 header and was "ignored" for lack of a better word. Hope that helps!
Re: [PHP] How to skip browser's Warning?
Create your own "back" button that re-posts the same data back to the search page? Or have a "new search" (that takes you back without filling in the old search data) as well as a "revise search" or something that takes you back without while retaining the original search data. Or do like someone said and put your search variables in a GET variable instead (if it's secure enough and if you don't have 500 search variables). Or store the search data in a $_SESSION or $_COOKIE or in the database associated with the user's SESSIONID. Lots of ways. -TG = = = Original message = = = :D :D :D How to get back then? > [EMAIL PROTECTED] wrote: >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the browser to see again list of found products (result page): >> "The Page you are trying to view contains POSTDATA that has expired from >> cache. If you resend the data, any action the form carried out such as a >> search or online purchase) will be repeated. To resend the data, click >> OK. >> Otherwise, click Cancel." >> > > Don't click the back button. > > -- > John C. Nichel IV > Programmer/System Admin (~berGeek) > Dot Com Holdings of Buffalo > 716.856.9675 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
Create your own "back" button that re-posts the same data back to the search page? Or have a "new search" (that takes you back without filling in the old search data) as well as a "revise search" or something that takes you back without while retaining the original search data. Or do like someone said and put your search variables in a GET variable instead (if it's secure enough and if you don't have 500 search variables). Or store the search data in a $_SESSION or $_COOKIE or in the database associated with the user's SESSIONID. Lots of ways. -TG = = = Original message = = = :D :D :D How to get back then? > [EMAIL PROTECTED] wrote: >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the browser to see again list of found products (result page): >> "The Page you are trying to view contains POSTDATA that has expired from >> cache. If you resend the data, any action the form carried out such as a >> search or online purchase) will be repeated. To resend the data, click >> OK. >> Otherwise, click Cancel." >> > > Don't click the back button. > > -- > John C. Nichel IV > Programmer/System Admin (~berGeek) > Dot Com Holdings of Buffalo > 716.856.9675 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the browser to see again list of found products (result page): >> "The Page you are trying to view contains POSTDATA that has expired from >> cache. If you resend the data, any action the form carried out such as a >> search or online purchase) will be repeated. To resend the data, click >> OK. >> Otherwise, click Cancel." >> >> Thanks for any help. >> >> -afan >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> If you add a header redirect [header('Location:');] after your script > processes the POST data you can avoid this. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
Sonce nothing "secretly" - I can' do that. I'll try right now. > Easiest way: change your search form's method to GET instead of POST > - I'm sure you're not passing enough parameters to the search results > page to actually need to use POST. > > > On Sep 13, 2006, at 11:44 AM, [EMAIL PROTECTED] wrote: > >> Hi, >> Could somebody explain to me what to do to skip this message I'm >> getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back >> button of >> the browser to see again list of found products (result page): >> "The Page you are trying to view contains POSTDATA that has expired >> from >> cache. If you resend the data, any action the form carried out such >> as a >> search or online purchase) will be repeated. To resend the data, >> click OK. >> Otherwise, click Cancel." >> >> Thanks for any help. >> >> -afan >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
:D :D :D How to get back then? > [EMAIL PROTECTED] wrote: >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the browser to see again list of found products (result page): >> "The Page you are trying to view contains POSTDATA that has expired from >> cache. If you resend the data, any action the form carried out such as a >> search or online purchase) will be repeated. To resend the data, click >> OK. >> Otherwise, click Cancel." >> > > Don't click the back button. > > -- > John C. Nichel IV > Programmer/System Admin (ÜberGeek) > Dot Com Holdings of Buffalo > 716.856.9675 > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (result page): "The Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out such as a search or online purchase) will be repeated. To resend the data, click OK. Otherwise, click Cancel." Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If you add a header redirect [header('Location:');] after your script processes the POST data you can avoid this.
Re: [PHP] How to skip browser's Warning?
Easiest way: change your search form's method to GET instead of POST - I'm sure you're not passing enough parameters to the search results page to actually need to use POST. On Sep 13, 2006, at 11:44 AM, [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (result page): "The Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out such as a search or online purchase) will be repeated. To resend the data, click OK. Otherwise, click Cancel." Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to skip browser's Warning?
[EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (result page): "The Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out such as a search or online purchase) will be repeated. To resend the data, click OK. Otherwise, click Cancel." Don't click the back button. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to skip browser's Warning?
Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (result page): "The Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out such as a search or online purchase) will be repeated. To resend the data, click OK. Otherwise, click Cancel." Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php