How to get values from textbox in a while loop? Can somebody help me?

Member Avatar for diafol

how many textboxes have you got? Show the code you have so far.

how many textboxes have you got? Show the code you have so far.

$mysql = "SELECT * FROM jjcmlmar_ozekidb.tbl_POtemp, jjcmlmar_jjcmlmarketing.tbl_product WHERE jjcmlmar_ozekidb.tbl_POtemp.product_id = jjcmlmar_jjcmlmarketing.tbl_product.pd_id";
$myresult = mysql_query($mysql) or die (mysql_error());



while ($myrow = mysql_fetch_assoc($myresult))
{

$mytotal = $myrow['qty'] * $myrow['pd_supplier_price'];
$total += $mytotal;
$total1 = number_format($total,2);
echo "<tr>";
echo "<td class='content'>" . $myrow['product_id'] ."</td>";
echo "<td class='content'>" . $myrow['pd_name'] . "</td>";
echo "<td class='content'>" . $myrow['pd_description'] . "</td>";
echo "<td class='content'>" .$myrow['pd_supplier_price'] ."</td>";
echo "<td class='content'><input type='text' name='$txtQty' size='2' value='".$myrow['PO_qty']."'></td>";
	
echo "<td class='content'>" .$mytotal ."</td>";
echo "<td class='content'><a href='index.php?action=remove&vendor=$vendor&id=$pd_id'>Remove</a></td>";
echo "</tr>";



}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.