I have a from with a number of field form a database. Those fields al have the same name with a numer of the row attacheted to them.
Like
<input type=text" name="aantal1" value="">
<input type=text" name="aantal1" value="">
<input type=text" name="aantal1" value="">
and so on.
and I have a hidden field with the number of rows of the form. name="teller"
I want these fileds to be updated when I post the form.
Like this
for ($i=0; $i<=$teller; $i++)
{
Mysql update statement....
}
What I can't get done is reading the value of each of the rows and then updating them in te database. I want to get the values of each of the rows en seperately updating them in database.
I've tried this:
name.$i
but I get "name1" as output.
Can anybody help me!!
Thanx