Hi there folks:
I have a large conundrum that I need solving:
I have a php function used to dynamically generate multiple HTML tables, whose data is displayed within form input elements.
(All within a single form, to enable multiple submissions from a single submit.)
The function takes a MySQL DB generated array as an argument, loops thru it, and displays the array key as each text-field's label, and the associated array value as each text-field's value.
The problem I have just discovered though, is that when the 'submit' button is pressed, there is no way to uniquely access & therefore use, this form data, as each field's name is identical, thus: "<input type="text" name="<key from array>" value="$someval">.
Each field has the same array key as a field-name and it isn't therefore unique!
I tried feeding a second argument to my function, that of each DB result's unique (SMALLINT) 'id' field. This then gave me:
"<input type="text" name="<key from array><id>" value="$someval">. OK so I now have a unique text-field name, the problem now is, how to refer to/access this after a POST/GET submission?
Please help me out, this is by far the most hardcore problem I have yet encountered!
Many thanks in advance.
Russ.