Below is the code for the checkbox
foreach($fruits as $key=>$values) {
echo "<td bgcolor=\"#EAEAEA\" style=\"color:#003399\"><input type=\"checkbox\" name=\"fruits[]\" value='$fruits[$key]'>$fruits[$key]</td>";
How can i retain the values selected once i click submit?