Hi,
I have a table populated by an sql query joining various tables. in every row i have a dropdown populated by another sql query and button (which for testing sakes) echos the value of the dropdown selected.
My problem is for the first row of my table, whatever dropdown value i select, the value echo'ed when I click the button is always the first. The dropdown on the other row works fine.
<tr>
<td><?php echo $arr['company']?></td>
<td><?php echo $arr['title']?></td>
<td><?php echo $arr['prodname']?></td>
<td><?php echo $arr['proddocs']?></td>
<td><?php echo $arr['qty']?></td>
<td><?php echo $arr['prodprice']?></td>
<td><?php echo $arr['total']?></td>
<td><?php echo $arr['veridate']?></td>
<td><?php
echo "<select name=manager></option>";
while($arr2 = mysql_fetch_array($result2)){
echo "<option value='".$arr2[username]."'>$arr2[username]</option>";
}
echo "</select>";
?>
</td>
<td>
<input type="submit" name="submit" value="Assign"></td>
</tr>