Well I ran into another proble... :mad:
with the items options
checkbox plus[] checkbox minus[]
those are there to tell the next script if it needs to add or subtract the extra fee. but they are only inserting with the first item in the array. everything else inserts right.
ie:
in the while item result {
item_id description
our_cost quantity extra fee checkbox(+) checkbox(-)
Heres the code:
<?
while($row = mysql_fetch_array($result))
{
$i_id = $row['i_id'];
$i_desc = $row['i_desc'];
$i_cost = $row['i_cost'];
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td width="6%">
<input type=text name=i_id[] value=<?="$i_id";?> ReadOnly=True size="5" tabindex="0" style="border: 0;">
</td>
<td width="74%">
<?="$i_desc";?>
</td>
<td width="10%" style="border-left-width:1px;" align="left">
<?="$i_cost";?>
</td>
<td width="20%" style="border-left-width:1px;" align="right" bgcolor="#ecedf0">
<table width="200" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="100" bgcolor="#ecedf0" valign="top">
<input type=text name=i_qty[] tabindex="<?="$count2";?>" size="8">
</td>
<td width="50" bgcolor="#ecedf0" valign="top">
<input type=text name=i_extra[] tabindex="<?="$count2";?>" size="7">
</td>
<td width="25" align="center" bgcolor="#ecedf0" valign="top">
<b>
<input type="checkbox" name="i_plus[]">
<br>
<font size="3">+</font> </b></td>
<td align="center" width="25" bgcolor="#ecedf0" valign="top">
<b>
<input type="checkbox" name="i_minus[]">
<br>
<font size="3">-</font> </b></td>
</tr>
</table>
</td>
</tr>
</table>
<?
$count = $count + 1;
$count2 = $count2 + 1;
}
?>
any ideas??
Would greatly appreciate it :rolleyes: