Loop through form input array

devilmafia

New Member
I have a dynamic output form where the text input fields have the same name. I need to loop throughthe text inputs and insert multiple rows into the database for each text field input.\[code\]$sql="INSERT INTO orderitems (orderNum,productNum,quant) VALUES ('$num1','$_POST[pNum]','$_POST[quant]')";<input type="text" name="pNum" value="http://stackoverflow.com/questions/3923892/<?php echo $t1; ?>"> //may have several with same name\[/code\]
 
Back
Top