help with multiple entries in database from php form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anushila
Forum Newbie
Posts: 1
Joined: Sun Nov 05, 2006 12:01 am

help with multiple entries in database from php form

Post 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.
Tseng
Forum Newbie
Posts: 2
Joined: Sat Jun 02, 2007 2:28 pm

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Tseng, this thread is ancient, please let it die in peace
Post Reply