Here's an example, I create the dynamic portion of the form with a while statement. Here's what the dynamic form inputs look like:
<input type="text" name="memberpoints<?php echo $memberid; ?>" size="1" maxlength="50"></input></td>
Lets say the two memberid's returned from my query are 1 and 2. My while statement creates the following variables:
$memberpoints1
$memberpoints2
My problem is this...after the form's submit button is pressed, how do I know which variables to call in my insert statement(s)?
Example:
insert into table (field) values ($memberpoints1);
insert into table (field) values ($memberpoints2);
The work around I'm using is to hard code if statements looking for the above variables.
Example:
if ($memberpoints1) { insert... }
if ($memberpoints2) { insert... }
But this means that if my original query returns 3 records for the dynamic form, I will miss the 3rd one.
Thx,