mercredi 27 mars 2019

How can I store Unchecked box data in database in PHP?

In PHP I used Multi check box in foreach loop, When I Unchecked then I want to count and store that data in Database and also for Checked data, so How can I do that? And I've a condition for that it is...

If(checked)
{
 Insert Present
}
Elseif(Unchecked)
{
 Insert Absent
}

Check box is in foreach loop, so there is multiple checkbox with different names.

Here presently I store data for Checked, but I can't store data for Unchecked, so please help me to solve this problem.




Aucun commentaire:

Enregistrer un commentaire