busdriver99
12-08-2010, 08:02 PM
Hi,
I am writing a form to insert a person's information to a database using a form and PHP. I am planning on storing each person's data using a "Person" class. However, I want the user to fill out the form multiple times and then submit an entire array of "Person" classes all at once. I have a couple questions:
1) To do this, should I still use a POST action to retrieve the inputs to populate each individual class or just obtain them through java script?
2) To update my array with a new Person class, would I have to store this array in the session, or is there another way?
Thanks
I am writing a form to insert a person's information to a database using a form and PHP. I am planning on storing each person's data using a "Person" class. However, I want the user to fill out the form multiple times and then submit an entire array of "Person" classes all at once. I have a couple questions:
1) To do this, should I still use a POST action to retrieve the inputs to populate each individual class or just obtain them through java script?
2) To update my array with a new Person class, would I have to store this array in the session, or is there another way?
Thanks