webdev007
Programmer
- Sep 9, 2005
- 168
Inserting in Db results of multiple radio
<input type='checkbox' name='aa[]' value='1'> WORKS
<input type='radio' name='aa[]' value='1'> Does not
AND
<input type='radio' name='aa[$counter]' value='1'> Does not.
The two radio result in "Undefined offset:0" at line ... whis is a !preg_match ...[$counter]
but if I do print_r the array is correct
AND
if I comment the whole preg section
then at the "DB insert level" I got undefined var $answer
I really do not get it!
<input type='checkbox' name='aa[]' value='1'> WORKS
<input type='radio' name='aa[]' value='1'> Does not
AND
<input type='radio' name='aa[$counter]' value='1'> Does not.
The two radio result in "Undefined offset:0" at line ... whis is a !preg_match ...[$counter]
but if I do print_r the array is correct
AND
if I comment the whole preg section
then at the "DB insert level" I got undefined var $answer
I really do not get it!