Hi,
I'm writing a program that generates forms on the fly and populates it with data from a mysql db.
Within the form I store the info twice, once in a hidden variable, and again in an input box so the user can change it. The hidden is used to determine which fields have been changed.
I'm using 2d arrays for this, as I don't know ahead of time how many rows will be presented to the user.
Both array indexes are numeric, starting at zero, so we have:
<INPUT TYPE="HIDDEN" NAME="sql_data[0][0]" VALUE="field 1">
<INPUT TYPE="TEXT" NAME="edt_data[0][0]" VALUE="field 1">
However, when the form is submitted and I say print($sql_data[0][0].' '.$edt_data[0][0]); I get nothing printed.
Anyone got any clues, please. I cant work out whats going on!!
BTW If I say print($edt_data[0]); it outputs Array, so the array is passed, but theres nothing in it.
Thanks in advance,
Alan