The 1st page is a search form that resubmits to itself and displays a list of homes. Then the user clicks on a home to display. When they are done looking at the home, they press the "back" button of the browser and then it is asking the user to refresh the page manually. I just want it to redisplay the last page as it was and not refresh it.
This is the way it used to work, but I cant figure out what caused it to start asking the user to refresh the page.
I'm not sure what code to show here. I'm using a Form with mostly PHP and very little JavaScript.
What could cause Page 1 to re-submit or refresh??
Update: I figured out that it has something to do with the PHP Session, however I dont know why its working correctly now:
This is the PHP code I had at the beginning of page:
`<?php session_start();
$PrevNext = $_SESSION['PrevNextH'];
$queryH = $_SESSION['queryH'];
?>`
This is what I changed it to and it works fine now:
` <?php session_start();
$PrevNext = $_SESSION['PrevNextH'];
$queryH = $_SESSION['queryH'];
?>`
All I did was indent each line twice and the problem was solved. This does not make sense to me. Anyone know why this could happen?