I have been trying to get this to work for a couple days now and am at the end of my rope.
I have a php script that allows the user to input header and detail lineitem data. In the lineitem section, there is a drop-down choice with two values. I'm using the form for new data and existing data. When I add a new master record with child lineitems, everything works fine and the selection from the drop-down is passed to the second PHP script and added to the db correctly. When I read the record back in, it populates the form, all lineitems and selects the correct item in the drop-down.
However, when I 'save' the data from the existing record, all the lineitem data is passed to the second PHP script and added to my MYSQL db EXCEPT for the item that is selected via the drop down choice. That field is blank.
The code is rather long, but I must be doing something wrong with the syntax of my select list. Can someone show me some code of a form that contains multiple lineitems (with a drop down as one of the linitem fields) and passes the data in the array in a hidden field to a second PHP script?
I've tried so many things. I've serialized the array (to pass it) and then unserialize it to read/write to the db. Like I said, all the fields are there EXCEPT for the drop-down choice.
Does anyone have a clue? Thanks so much for any help.