hello, im trying to process a form which has 10 identical sections with some kind of loop.
the form is like
<INPUT type=checkbox value=Yes name=fieldcheck1>
<INPUT size=42 name=name1>
<INPUT size=42 name=phone1>
<INPUT size=42 name=address1>
<INPUT type=checkbox value=Yes name=fieldcheck2>
<INPUT size=42 name=name2>
<INPUT size=42 name=phone2>
<INPUT size=42 name=address2>
<INPUT type=checkbox value=Yes name=fieldcheck3>
<INPUT size=42 name=name3>
<INPUT size=42 name=phone3>
<INPUT size=42 name=address3>
and on to like this 10 times
now i m trying to colect the data from each section of the form with a loop that will check the check box and if its YES then it will insert the data for the section into the database and then increment the varibles number and do the same for the next section until it gets to the end with no sections left to save to database.
does any one know how to setup a while loop to do this?