/    Sign up×
Community /Pin to ProfileBookmark

page expired problem

hi, I have 3 pages, main, process and confirmation.
user input is gathered from main and posted to process page, on proces page, some extra user inputs are also collected and posted to confirmation page. I have these code to validate user input on all pages:

if($Last_Name==””)
{
echo “<center><font color=’red’>Your booking can not be processed : Please input your last name!</font></center>”;
echo “<center><a href=’Javascript:history.back()’>Go Back to make changes</a></center>”;
}

this works fine for posting values from main to prcess page.
however, the Internet explorer throws error when i use it for posting values from process to confirmation page:

“Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button. “

I did some research, one way to get around is to use header. but I have already used header elsewhere.

dont know what to now, please help

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@KethinovMay 21.2006 — That error will occur whenever you try to refresh a page which had variables sent via POST. You might want to instead pass everything with GET, or rethink the your page flows.
Copy linkTweet thisAlerts:
@ssffccauthorMay 24.2006 — thx kethinov, I will try to implement get for the not very important pages.

any suggestion on better page flow? my logic is: first page (input) ---> second page (display the data and confirm with user) ---> third page (display thx message for successful submission)
Copy linkTweet thisAlerts:
@KethinovMay 27.2006 — Then use three pages. Don't use Javascript to rewind the browser back to a page with previously POSTed data, or you'll have these problems.
Copy linkTweet thisAlerts:
@ssffccauthorMay 28.2006 — well, I have 3 pages there aready, and I didnt use JS at all
Copy linkTweet thisAlerts:
@KethinovMay 31.2006 — well, I have 3 pages there aready, and I didnt use JS at all[/QUOTE]

Your link is using Javascript history back 1.
×

Success!

Help @ssffcc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...