How can I get the values in Check box while loop in php. Pls give me some tips to get the values from the below php code.
$sql=mysql_query("select * from tree");
while ($result = mysql_fetch_array($sql))
{
echo "<br>";
echo "<label> <input type=checkbox name=Test value=checkbox id=Test_0 > $result[fruit] | $$result[fruit_charges] </label> <br >";
echo "<br>";
}
echo "<br><input type=submit name=Search id=button value=search />";