Jump to content

history back??


shadiadiph

Recommended Posts

You can store the history in sessions then use the header tag when the user presses the back button, but this would have to postback to the server, so an extra step. But yes it is possible sortof. The first view of the page PHP will not be able to send back unless you use $_SERVER['HTTP_REFERER'], which can be invalid data.

 

 

EDIT: Yea I probably meant that.

Link to comment
https://forums.phpfreaks.com/topic/140157-history-back/#findComment-733374
Share on other sites

You can store the history in sessions then use the header tag when the user presses the back button, but this would have to postback to the server, so an extra step. But yes it is possible sortof. The first view of the page PHP will not be able to send back unless you use $_SERVER['REFERRER'], which can be invalid data.

 

Don't you mean $_SERVER['HTTP_REFERER']?

Link to comment
https://forums.phpfreaks.com/topic/140157-history-back/#findComment-733379
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.