I am new to php. 

I want to have a form such as this:

```
 Name   <TextField>   Corresponding pic:  <dropdown> hiddenID (not shown to user)
 Name   <TextField>   Corresponding pic:  <dropdown> hiddenID (not shown to user)
 Name   <TextField>   Corresponding pic:  <dropdown> hiddenID (not shown to user)
 Name   <TextField>   Corresponding pic:  <dropdown> hiddenID (not shown to user)
 Name   <TextField>   Corresponding pic:  <dropdown> hiddenID (not shown to user)

 Update Values (button)

```

After the button is clicked (form submitted) how will I get all those values. I want to update a database table for each of those values. query would be like

```
update user_tables name=<newnameSubmitted>, pic=<valueFromDropDown> 
where id=<hiddenIdGottenBack>

```

In this example I have 5 values...how will I be able to run the above update statement 5 times with corresponding values. 

Please clear my confusion or guide me to a tutorial that will help me out a little.