/    Sign up×
Community /Pin to ProfileBookmark

Reloading page problem

When I’m in a certain php page that contains data passed via POST from another page, and I reload the page by pressing the <enter> in the address bar I notice the page reloads but with all the searched data from the POST gone. This is in firefox, just fyi.

There is no issue when the reload button is used.

How can you prevent all the data from going away if the user resends the page by pressing <enter> in the address bar.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@DariaMay 02.2011 — start a session on the posted data, then echo the result in the input fields?
Copy linkTweet thisAlerts:
@arzooauthorMay 03.2011 — Yes, that is what I do, which is the ok part. I don't have a problem there.

The thing I noticed is that after you have a screen filled with the data, then go to the address bar and press <enter> on that same address, it reloads the page but this time without all the data that came from the post.

The problem, on the other hand, does not occur when I refresh the page using the reload button.
×

Success!

Help @arzoo 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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