I have a form that is generated. It generates input boxes according to the users choose.
so if a user make 2 chooses or 10 in any case the form now has several input box with the same name (3 in this case). <input type"hidden" name="name" value=" name1"> <input type"hidden" name="name" value=" name2"> <input type"hidden" name="name" value=" name3"> which were generated, each holding a different value. if the user decides to go on these values need to be inserted into a database (MySQL) as seperate rows can this be done and if so how.
TIA Richie TM
name oughta be name="name[]"
and then you do in the insert document:
for ($i=0; $i < count($name); $i++) { mysql_insert code here... }
I haven't tried exacly this, and I'm at home so I can't be more specific 🙂
Hope it helps, Arni