Jump to content

Recommended Posts

Hey everyone,

I'm getting ready to develop a set of employment application forms, and I've been thinking about I'm going to be handling the information across the different pages (the main contact info, education, references, etc), and I wanted to see if anyone out here has developed something like this before (or you're just naturally a smart person and know the answer). Right now, I was wondering if I should just keep everything as session variables and then run a transaction on the DB to make sure everything gets put in ok (the data's going to be split into about 7 tables I think), but I was concerned with the size the sessions would start to take up, so I'm hoping there's a better way.

Have any ideas?

Thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/9321-creating-an-employment-form/
Share on other sites

The best way to go about this is to insert parts of the record as you go along. So you're actually storing it into the database. Then when you get to the end of the forms, you set a column to 1... (initially setting this to 0). So if someone exists the form early, you know it because that field will be 0. Then whenever a full set of forms does get submitted (or someone starts a new one), just run a simple script to delete everything out of the database that has a 0 in that field. You're also going to want to check a date field, because to concurrent sessions could delete one or the other.

I hope that makes sense.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.