One more question...
I have pulled my query line by line into my php form. Each line/row will have an input field. How can I dynamically assign a variable to the "name" field, for instance if I want the name= to be the value of the item_no.
My updated code:
Thanks again,
MO
I have pulled my query line by line into my php form. Each line/row will have an input field. How can I dynamically assign a variable to the "name" field, for instance if I want the name= to be the value of the item_no.
My updated code:
Code:
<form action="inventorymaster_form.php" method="post" name="inventorymaster_form" align="left" class="style3" bgcolor="#ffffff" onSubmit="return verifyForm(this);">
<legend>INVENTORYMASTER</legend>
<table border="1" class="mainmenu" border="0" cellpadding="0" cellspacing="0">
<?php
$i=0;
while ($i<$num) {
$f1=mysql_result($result,$i,"id");
$f2=mysql_result($result,$i,"Vendor");
$f3=mysql_result($result,$i,"item_no");
$f4=mysql_result($result,$i,"description");
?>
<tr>
<td>     <?php echo $f1;?>    </td>
<td>     <?php echo $f2;?>    </td>
<td>     <?php echo $f3;?>    </td>
<td>     <?php echo $f4;?>    </td>
<td align="center"> <input type='text' [B]name=$f3 [/B]value="<?php echo "$i";?>">
</tr>
<?php
$i++;
}
?>
</table>
</form>
MO
Comment