I m doing a mysql database project. In my Webpage there r multiple rows of textboxes,where each row of textboxes correspond to a single entry in the database.
When the user enters data into a single row and press the save button the values r automatically stored in the database but when the user gives two rows(say two entries for the database) and when he presses the save button the two rows should automatically be inserted into the database.
How can i do this? How shall i read the values from the text boxes and how shall i come to know how much rows the user has entered in the page.
Can anyone help me in doing this?
I m using jsp for insertion and also javascript and ajax.
http://jsfiddle.net/matheusvmbruno/BLLvZ/