404 error after clicking back button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shuchitaumehta
Forum Newbie
Posts: 15
Joined: Tue Jul 01, 2008 2:10 am

404 error after clicking back button

Post by shuchitaumehta »

Unable to eliminate "Page Unavailable" errors when a user hits on the
Browser "Back" button in Internet Explorer.
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: 404 error after clicking back button

Post by Apollo »

Need more details.
shuchitaumehta
Forum Newbie
Posts: 15
Joined: Tue Jul 01, 2008 2:10 am

Re: 404 error after clicking back button

Post by shuchitaumehta »

Apollo wrote:Need more details.
for example register user page

after submit i post data to other page

in that page data inserted in db & redirect to 3rd page (next page)

now on 3rd page if i click browser back button i got 404 error

"The page cannot be displayed"

if i manually refresh page then it shows the page

don't know why this is so..?
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: 404 error after clicking back button

Post by Apollo »

Did you try different browsers?

If you setup two php files, the first just containing a link to the 2nd, and the 2nd just printing "hello world". When you visit the first, continue to the second, and hit back, does that work OK? If yes, try adding the elements from your current php files one by one, and retry going back everytime to see what causes the back function to stop working.
shuchitaumehta
Forum Newbie
Posts: 15
Joined: Tue Jul 01, 2008 2:10 am

Re: 404 error after clicking back button

Post by shuchitaumehta »

in Mozilla its working fine
but in IE its giving error

this is not in case of normal link click
i m posting data to 2nd page & the by using javascript moves to 3rd page
now at this 3rd page
browser back it gives error 404 page not found

thank you
Post Reply