Page 1 of 1

Page Cannot Be Found

Posted: Tue Mar 28, 2006 10:19 am
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.

Posted: Tue Mar 28, 2006 12:42 pm
by feyd
Are you sure it's not your code creating a problem?

Posted: Tue Mar 28, 2006 12:46 pm
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.

Posted: Tue Mar 28, 2006 12:55 pm
by feyd
post your code, we may see something amiss.

Posted: Tue Mar 28, 2006 1:02 pm
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.