By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

storing form values on form's submit

P: 1
Hey, guys,
I have a form in php, people have to fill their names and stuff and send it. if they use the same form for a second time, i dont want them to fill the form allover again. So is there a way, to keep a kind of history of the form. what i mean is, i dont want to lose the values of the form after its submited.

Jul 22 '08 #1
Share this Question
Share on Google+
4 Replies

P: 28
Do you consider the session before? If you put all value in session then system can retrieve previous record from session variable.
Jul 23 '08 #2

P: 57
Do you want the values to be persistent straight away, or in the long term...(ie willl they fill the same form again after a few seconds or hours/days/weeks/months later)?

If the form needs to be fille multiple times in a single sitting, I'm pretty sure any 'POST' data hangs around, and is accessible (provided you haven't overriden it with a variable of the same name) in your PHP script - and can be used to initialise field names. The first time you navigate to the page, the variables have not been set, and will leave blank fields on your form.
More information:

If the form needs to be filled on two seperate occasions, consider using a cookie to store the variable data on the clients machine
Jul 23 '08 #3

P: 13,264
Since this has nothing to do with Java, I've moved it to the Javascript forum.
Jul 23 '08 #4

Expert Mod 5K+
P: 5,343
hi ...

i changed the thread title to better describe the problem so that other users with similar problems may better find this thread ... have a look here ... and remember to use a meaningful thread-title ...

kind regards
Jul 23 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.