Hi, ive got an order form wheere the user is presented with a list of publications, each of which has a text box to enter the amount required, which is linked to the publication ID. The way i have it set up, is that all text box's are posted to the processing script.
At present the only way i can think of processing the amount is to use a for loop which cycles through the number of publications in the database and detects if the corresponding publication has an amount associated with it.
This is how I have my form set up-
$myqty= $row["pubID"] . "qty";
?>
<td align=left valign=middle width='20%'> <?echo stripslashes($row["name"])?></td>
<td align=left valign=middle width='20%'><?echo stripslashes($row['category'])?></td>
<td align=left valign=middle width='15%'><?echo $row['price']?></td>
<td align=left valign=middle><input type=text size=2 maxlength=4 name='$myqty' value=''></td>
</tr>
<?
Is there a more logical way of doing this, or should i just use the for loop option?
Thanks in advance