i have this kind of table where I have to store if checkbox is ticked or not because I use them like boolean
| name | isEmployed | isSoloParent |
|---|---|---|
| john | 1 | 0 |
I have to make the form dynamic, therefore people can add many rows as they want to fill up many at a single time.
There's no problem doing it for text inputs which can be easily done with <input type="text" name="name[]"> and some standard PHP $name=$_POST['name']; however I can't seem to apply the same concept to checkboxes. it doesnt receive unchecked values (NULL in sql) nor get read by php ISSET.
Aucun commentaire:
Enregistrer un commentaire