PDA

View Full Version : Submitting/updating a dynamic survey


stryka
Thu 27th Nov '03, 7:56pm
Scenario: A few ways to describe so here it goes...

User can pick X amount of items and there will be a dynamic amount of items displayed... depending on the query results and what recent items were added, it can be 3 items or 5items or more... etc...

What PHP code do I write so i can do MULTIPLE UPDATEs on a table when someone selects their items and submits their selections?

I know I will need some kind of counter and a WHILE statement somewhere

Form:
<input type="radio" value="#itemid#" name="question[#1]"/>
<input type="radio" value="#itemid#" name="question[#2]"/>
..
..
Update:
<WHILE>
Update table XXXXXX