Give me some examples how to update checkbox form by retrieve value from database and do if value=1 i want input type="checkbox" name="apple" value="1" Apple=checked.
<form action="update.php" method="post">
<input type="checkbox" name="apple" value="1">Apple <br>
<input type="checkbox" name="orange" value="2">Orange <br>
<input type="checkbox" name="banana" value="3">Banana <br>
<button type="submit" name="submit" value="submit">Save</button>
Aucun commentaire:
Enregistrer un commentaire