Eddie Shipman
asked on
Form to handle multiple entries
I have a form with 12 fields. This form submits the information for registering a student for courses that we offer. Currently, it only handles one registration at a time and is kind of clunky.
I want to present the user the capability to register more than one person at a time. Essentially adding multiple users' info at once before submitting the form.
I also want to have an area above the form that shows a list of people that they enter in a select, which will later be modified to have checkboxes so they may remove them, if needed.
Anyone know of any tutorials or sample showing how to do something like this using jQuery?
I want to present the user the capability to register more than one person at a time. Essentially adding multiple users' info at once before submitting the form.
I also want to have an area above the form that shows a list of people that they enter in a select, which will later be modified to have checkboxes so they may remove them, if needed.
Anyone know of any tutorials or sample showing how to do something like this using jQuery?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
each set of fields (a user reg.) is inside a div
on the server side, you get an array of fields for a given name
you just need to loop over it for each one
you don't have multiple forms, just one
on the server side, you get an array of fields for a given name
you just need to loop over it for each one
you don't have multiple forms, just one
we've an empty form
a set of fields outside this form
each time we click on the button, we clone the set of fields to add to the form
a set of fields outside this form
each time we click on the button, we clone the set of fields to add to the form
ASKER
I an not sure that you would get an array of fields if they had the same name unless they were named name="field_xxx[]"
I understand that there is only one form. Look at how these do it:
http://www.jdmweb.com/resources/formclone
http://code.google.com/p/sheepit/
I understand that there is only one form. Look at how these do it:
http://www.jdmweb.com/resources/formclone
http://code.google.com/p/sheepit/
ASKER