Page 1 of 1

help with multiple entries in database from php form

Posted: Sun Nov 05, 2006 12:03 am
by anushila
In this transition process the interfaces also have to change. now I am required to design an interface which is more like a excel data entry form. What I mean is like for example if this is a grade sheet used by a teacher then she has to enter the grades for 10 students(Not fixed 10 every time) and each student has multiple information fields like name, id, grade n so on . And once she hit a submit all the data goes to database.

Now my question is that is it possible to enter this kind of multiple rows and multiple columns data into the database at one submit click where I even dont know how many rows would the user fill. I can although assign a maximum no. of rows which could be filled by user but not the minimum.

Posted: Sat Jun 02, 2007 2:36 pm
by Tseng
how about asking the teacher how many entries to make and then setup the desired amout of fieldset to fill out. you save each fieldset in an array. like student[0], student[1] and so on... then you would just save a database record for each fieldset.

Tseng

Posted: Sat Jun 02, 2007 2:38 pm
by John Cartwright
Tseng, this thread is ancient, please let it die in peace