Hi This is probably an easy one
I have a php search page which looks up an mysql database, and if there are no results to show from user entry then i use the document.write fuction as seen below to send the user to a html page
else print "<script>document.location.href='no_results.htm'</script>";
The no_results page loads fine but the back button on the browser is then disabled, and I am stuck on the page. I could build a button that uses the History.go() function but I still would like the user to use the browsers back button if they wanted to. Is there a fix or workaround for this please
Any help would be much appreciated
Regards
Lee
I have a php search page which looks up an mysql database, and if there are no results to show from user entry then i use the document.write fuction as seen below to send the user to a html page
else print "<script>document.location.href='no_results.htm'</script>";
The no_results page loads fine but the back button on the browser is then disabled, and I am stuck on the page. I could build a button that uses the History.go() function but I still would like the user to use the browsers back button if they wanted to. Is there a fix or workaround for this please
Any help would be much appreciated
Regards
Lee