html - navigate back with PHP form submission -


so here deal, using html forms transfer variables page page , php script create pages based on values submitted. in general looks this: catalog of items select want , next page shows details specific item. works perfect, except 1 thing:

whenever use browser's button, error: err_cache_miss , need refresh page , confirm want resubmit data.

is there way fix this, customers able use button supposed to.

here full text browser provides me:

this webpage requires data entered earlier in order displayed. can send data again, doing repeat action page performed. reload webpage. press reload button resubmit data needed load page. error code: err_cache_miss

when post forms php, or other data, may come page , find message in browser "document expired" or "confirm form resubmission chrome". these messages safety precaution browser uses sensitive data such post variables. browser not automatically give fresh page again. must reload page clicking try again or page refresh. then, operates expect to.

however, php coder can work around annoying message browser adding little code script. example shows couple of lines of code can added above session_start() in order able go , forth page when post without hangups.the 'private_no_expire' mode means client not receive expired header in first place.

header('cache-control: no cache'); //no cache session_cache_limiter('private_no_expire'); // works //session_cache_limiter('public'); // works session_start(); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -