It looks like you are trying to do a multiple update. To do that you would either have to hand code your update and wrap it in a loop manually.
The easier way to do this is to remove the php code in the form element names that you have added manually. Then apply the Multiple Update server behavior. That will automatically rename your form elements to work with that server behavior.