mardi 18 avril 2017

Retain checkbox values on submit

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?




Aucun commentaire:

Enregistrer un commentaire