I have a dynamic checkbox that is created from the database. The textbox are for quantity here is a sample code:
$query="SELECT name,price FROM product";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
while ($i < $num) {
$name=mysql_result($result,$i,"name");
$price=mysql_result($result,$i,"price");
echo "<form name='waz' action='calculate2.php' method='post'>
<br>
<input type='checkbox' name='$name' value='$name; '/> $name
<input type='text' name='$name'/>
<br>";$i++;
} echo "<input type='submit' value='calculate'/>"; ?><br>
How can i capture the textbox and the checkbox values on the calculate2.php page and save each checkbox and textbox values as different variable. Help please