Possible Array{SOLVED}
Posted: Fri May 14, 2010 9:16 pm
I have a form that has total of 16 boxes. 4 across. now on the first row of 4 its named plan1,min1,max1,percent1, row 2 its plan2,min2,max2,percent2 and so on
Here is my code I have for the form.
as you see i have all the names the same with numbers.
What I want to do is for each row I fll out have it insert into a table if i fill out the first 2 rows then it would insert 2 records. I am thinking its an aray thing but AM not sure.
Any help someone can give would be nice.
Thanks
Here is my code I have for the form.
Code: Select all
<table cellspacing=0 cellpadding=2 border=0 width=100%>
<tr>
<td colspan=3><b>Specify the Rates:</b></td>
</tr><tr>
<td align=center>#</td>
<td align=center>Name</td>
<td align=center>Min Amount</td>
<td align=center>Max Amount</td>
<td align=center>Percent</td>
</tr>
<tr>
<td>1. </td>
<td><input name="plan1" type=text class=textbox id="plan1" value="Plan 1" size=10></td>
<td><input name="min1" type=text class=textbox id="min1" style="text-align:right" value="0.00" size=10></td>
<td><input name="max1" type=text class=textbox id="max1" style="text-align:right" value="100.00" size=10></td>
<td><input name="perc1" type=text class=textbox id="perc1" style="text-align:right" value="2.20" size=10></td>
</tr>
<tr>
<td>2. </td>
<td><input name="plan2" type=text class=textbox id="plan2" value="Plan 2" size=10></td>
<td><input name="min2" type=text class=textbox id="min2" style="text-align:right" value="0.00" size=10></td>
<td><input name="max2" type=text class=textbox id="max2" style="text-align:right" value="100.00" size=10></td>
<td><input name="perc2" type=text class=textbox id="perc2" style="text-align:right" value="2.20" size=10></td>
</tr>
<tr>
<td>3. </td>
<td><input name="plan3" type=text class=textbox id="plan3" value="Plan 3" size=10></td>
<td><input name="min3" type=text class=textbox id="min3" style="text-align:right" value="0.00" size=10></td>
<td><input name="max3" type=text class=textbox id="max3" style="text-align:right" value="100.00" size=10></td>
<td><input name="perc3" type=text class=textbox id="perc3" style="text-align:right" value="2.20" size=10></td>
</tr>
<tr>
<td>4. </td>
<td><input name="plan4" type=text class=textbox id="plan4" value="Plan 4" size=10></td>
<td><input name="min4" type=text class=textbox id="min4" style="text-align:right" value="0.00" size=10></td>
<td><input name="max4" type=text class=textbox id="max4" style="text-align:right" value="100.00" size=10></td>
<td><input name="perc4" type=text class=textbox id="perc4" style="text-align:right" value="2.20" size=10></td>
</tr>
</table>What I want to do is for each row I fll out have it insert into a table if i fill out the first 2 rows then it would insert 2 records. I am thinking its an aray thing but AM not sure.
Any help someone can give would be nice.
Thanks