Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
12-05-2008, 10:44 AM #1
- Join Date
- Sep 2008
- Thanked 3 Times in 3 Posts
keep any changes visible in form without submiting
there are two forms in my page, the first one controls some text fields and the second one is for uploading images.
What I need to do is to keep any changes made to the text fields of the first form, still visible, after the user has submitted the second form.
If the user submits the second form, the page refreshes, and all possible changes made in the first form are lost.
Can I just keep those changes visible without submitting them to the database? I mean submitting both forms is not a solution for me.
Last edited by ktsixit; 12-05-2008 at 11:08 AM.
12-05-2008, 01:37 PM #2
- Join Date
- Apr 2007
- Woodstock, Georgia
- Thanked 5 Times in 5 Posts
I'm not very exeprienced in PHP, but I'm guessing the script would be alot like the "Remember Me" check box on various logins.
12-05-2008, 06:03 PM #3
You could use global session variables like:
session_start();//this goes on top of page
$_SESSION['name'] = $name;