Page 1 of 1
Back and Forward Buttons
Posted: Tue Nov 30, 2004 10:48 am
by DudeBori82
In the process of using my shopping cart, sometimes when the back and forward buttons are used, it displays "This page cannot be displayed" as if it is a broken link. Sometimes it works, sometimes it doesn't. Why is it doing that? and How can I prevent it from doing that so that the user can navigate freely?
Posted: Tue Nov 30, 2004 2:45 pm
by pickle
It displays that, I would think, when post variables were sent to the page. I imagine that if you were to go back to that page, then refresh it, a window would pop up asking if you want to rePOST the form values?. As long as you post forms to a page, you won't be able to navigate freely, which sucks.
Posted: Tue Nov 30, 2004 3:59 pm
by rehfeld
this sounds like an IE problem.
at the top of your script, add this
if that 100% doesnt work all the time, do this
Code: Select all
header('Cache-Control: private, must-revalidate');
and if thats not enough, still do the above, but make your forms like this
Code: Select all
<form method="post" action="script.php?">
notice the ? i put into the action