/    Sign up×
Community /Pin to ProfileBookmark

Form field values disappearing

I keep having a recurring problem with HTML forms. I have a form in an HTML page, I have set no headers, meta tags or PHP. I submit the form and if there is an error with the form data, I go an error processing page. When I click the back button in the browser, my form values are empty. Can someone tell me why this is happning and how to fix?

Thanks

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@Stephen_PhilbinFeb 16.2005 — Does it have a file upload field in the form? I've just built a file uploader and noticed it does exactly the same thing. Back button doesn't allow retention of the form data on the file upload form, but it does retain data on forms without the file upload field. It's probably a good thing though if ya think about it.
Copy linkTweet thisAlerts:
@crh3675authorFeb 16.2005 — Nope, unrelated. Here's the URL:

http://conference.familyservicesagency.org/schedule.php

Select a couple of checkboxes within a single session and click submit (the submit is at the bottom)
Copy linkTweet thisAlerts:
@ray326Feb 16.2005 — Does PHP support variables with session scope? If so then you need to save your form data in the session then reload the form widgets from the session data when the form is reloaded. I think it's called something like a Memo or Memento pattern.
Copy linkTweet thisAlerts:
@Stephen_PhilbinFeb 16.2005 — I don't see a form on the page you linked to. I can't find any links either that might link to a page with forms. Did you accidentally post the wrong address?
Copy linkTweet thisAlerts:
@crh3675authorFeb 16.2005 — Checkboxes my friend.
Copy linkTweet thisAlerts:
@Stephen_PhilbinFeb 16.2005 — Aye. I don't see any form elements. Checkboxes, radio buttons, anything.
Copy linkTweet thisAlerts:
@crh3675authorFeb 16.2005 — http://conference.familyservicesagency.org/schedule.php

The check boxes are next to the pretty purple SELECT boxes.
×

Success!

Help @crh3675 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.7,
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,
)...