Page Cannot Be Found

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
LeonardBanks
Forum Newbie
Posts: 3
Joined: Tue Mar 28, 2006 10:01 am

Page Cannot Be Found

Post by LeonardBanks »

Hello all.

I am having an issue with a page that contains a form. The form submits to itself.

The button used to submit the form is a <button..> with an onclick that validates some data then does a document.frm1.submit(); if all data checks out.

I have these headers set:
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
Header('Pragma: no-cache');

My issue is that sometimes, and I cannot recreate regulary, after clicking the button I get a "Page Cannot Be Displayed" error. I click the browser's back button, and all form data is gone, I hit the button and again "Page Cannot Be Displayed". I can hit back and then the button over and over with same "Page Cannot Be Displayed". Now when on the "Page Cannot Be Displayed" if I refresh it first asks if I want to resubmit data, I click yes and the page will load but the data submitted is not there. NOW if I hit back and then hit the button it will submit just fine. The refresh is needed to fix the issue. I have not found a pattern that will cause the "Page Cannot Be Displayed" error.

Any help would be greatly appreciated.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Are you sure it's not your code creating a problem?
LeonardBanks
Forum Newbie
Posts: 3
Joined: Tue Mar 28, 2006 10:01 am

Post by LeonardBanks »

feyd wrote:Are you sure it's not your code creating a problem?
No I am not sure.

Not sure what is creating the problem.

If I refresh on the "Page Cannot Be Found" then it will not show up for a while.

Not shure why it shows up.

I thought is was a cache issue so I put in all those headers.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

post your code, we may see something amiss.
LeonardBanks
Forum Newbie
Posts: 3
Joined: Tue Mar 28, 2006 10:01 am

Post by LeonardBanks »

2753 lines. And I can't display company code.

I was hoping it was some simple setting I am missing. I may go 3 months without seeing it happen. But when it does happen the only way to fix it is to refresh on the "Page Cannot Be Displayed" page.
Post Reply