Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing for Page Content

Status
Not open for further replies.

andy98

Programmer
Jul 7, 2000
120
GB
Hi

Is there a way in PHP to test for the content of a page returned to ensure that I can trap, "The page cannot be displayed" messages!

The reason I want to do this is that I have a search page that display a resultset on the following page and has a back button which always seems to throw this message:
"The page cannot be displayed"

 
>>back button

did you write the script for the back button???

Known is handfull, Unknown is worldfull
 
It's probably IE not wanting to post the search form criteria back to the URL.
 
Maybe some code examples would be helpful in determining what might be the problem, because I don't think there is a way to do what you wish. That message occurs and is generated client-side, if I'm not mistaken.
 
I think, if memory serves me correct - that in coldfusion, you can call a page and test to see if the headers are for a valid page - and so do a redirect if the page is going to throw an error.


I was just wondering if something was possible in PHP!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top