Hi I am displaying check box together with the result of a query using the following code.the checkbox name is as follows box1,box2,..etc.
if ($search) {
$nr=0;
$result = mysql_query("SELECT * FROM tablename WHERE (keywords LIKE '%$keywords%')",$db);
while($myrow = mysql_fetch_array($result)) {
$nr++;
echo " HTML table header stuff
<table>";
printf (< tr >< td ><input type = 'checkbox' name='box$nr' value=%s
$myrow["name"]);
How can I read the value of the check box on the result page.I tried to use
echo box$nr;
but it returns box1 instead of the value stored in $box1.
Anyone for a solution?Thx