My situation is this: I have an html page which contains a table of four rows and three columns. When creating the page (using a PHP script) some of the rows have their cells filled with text while the rest have their cells filled with text boxes. What I want to do is allow the user to fill any number of the rows with text boxes and then submit them to a PHP script.
When the user clicks submit, I want to get all the rows which the user has filled in (essentially the rows with filled textboxes) and submit just the data in those text boxes to the script, ideally in a 2D array where each row of the array represents a row of the table?
Well, you can echo out the
inputtags with the name attribute that goes something likefields[]. When submitted this will set$_POST['fields']to an array containing the data given from the user.HTML
PHP