tags:

views:

120

answers:

4

Hi,

This may be a very easy one, but I am having problem while using onclick="javascript:history.back(-1);" with PHP. In the first page, I get a search result and I have used a post action to get the search criteria. From this page, I can view the details of the search result. When I go back to the search result page for IE, I get nothing but the page displays "webpage has expired."

What can I do about this problem?

Thanks in advance!

A: 

It seems that IE is not re-posting the form when you go back to that page. Have you considered using a GET request for your search?

Curt Sampson
A: 

The problem (probably) is that you may be using POST request to generate the search results.

Just my curiosity: which version of IE are you using?!

Here Be Wolves
A: 

Try posting the form to itself (the same page) instead of another page, then if there is an error you don't have to 'go back' because you are already there! Simply print out the form again and fill in the values that were posted along with a message that something in the form didn't validate.

Matthew James Taylor