Current location: Hot Scripts Forums » Programming Languages » PHP » Save a form in progress


Save a form in progress

Reply
  #1 (permalink)  
Old 08-18-04, 05:14 PM
stomlin stomlin is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Save a form in progress

How can you create a form that can be saved and the user can come back and later and continue filling it out?

I have an application for employment form that I am working on, but it is rather lengthy. I would like to have the option for a new hire to start filling the form out and if for some reason they can't finish it, they can save it, then come back and pick up where they left off.
Reply With Quote
  #2 (permalink)  
Old 08-18-04, 05:32 PM
polanhe's Avatar
polanhe polanhe is offline
Newbie Coder
 
Join Date: Aug 2004
Location: Guatemala
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
hmmmmmmmm... maybe with temporary tables.
Reply With Quote
  #3 (permalink)  
Old 08-18-04, 10:00 PM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
or, well, maybe cookies also....or maybe a combination of the two.....really not sure on this one.
Reply With Quote
  #4 (permalink)  
Old 08-18-04, 10:00 PM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
OH, just thought of something.....you could have a "Quit" link or something on the form. When they click "Quit", ask them to enter their email address, and 4 digit code or something. Then store info in database so that they can retrieve it later.
Kevin
Reply With Quote
  #5 (permalink)  
Old 08-19-04, 05:27 AM
v1brazy v1brazy is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Newcastle - UK
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Well , i think it will have to be cookies!!

1- You will need a php function to check if the cookie is set
1.1 - If there is no cookie set continue
1.2 - Else (if there is a cookie set, then use the value in the cookie and fill out the form fields with the cookies contents)

2 - You will need another php function for when the user clicks on the save button
2.1 - You will need to check if the fields in the form are not empty, and add those values to the cookie, if its empty dont.

I think you will be able to find out loads of info about this on the net, but Javascript will be a more appropriate language to use i recken!!

I hope i helped!
thx

peace
Reply With Quote
  #6 (permalink)  
Old 08-19-04, 08:15 AM
stomlin stomlin is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
How would this information:

"OH, just thought of something.....you could have a "Quit" link or something on the form. When they click "Quit", ask them to enter their email address, and 4 digit code or something. Then store info in database so that they can retrieve it later.
Kevin"

Be stored in the database and how do they pull this information?
Reply With Quote
  #7 (permalink)  
Old 08-19-04, 08:15 AM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
Why wouldn't you just use sessions? and give field numbers then just save the value in the session. You would have a save feature dealte and submit. Also you could set to dealte after any amount of time you want [that can be done with cookies too]. If you need help just shoot me a pm or im via aim [link in sig] and i'll help you get started.
Reply With Quote
  #8 (permalink)  
Old 08-19-04, 11:20 PM
jrcarr jrcarr is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Arkansas
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Whether you used Sessions or Cookies, wouldn't that be an excessive amount of information for either? I mean if this application is so long that the applicant might need to come back and finish it.... I think the database and 4 digit code sound closer to reality. When they come back the enter their 4 digit code and then the form retrieves the info from the database. I'm assuming you are going to be storing these application anyway, why not in a database.

Jack
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Limit the form submission according to time bionicsamir PHP 7 05-09-04 11:10 PM
make form box TEXT? lylesback2 JavaScript 2 04-05-04 06:58 PM
submit form? tcooper PHP 5 12-12-03 03:30 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 03:49 AM


All times are GMT -5. The time now is 04:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.