SilverNodashi
Expert Member
Hi everyone,
I need to capture dynamic form data in a PHP script, and would like to know how to capture un-checked checkboxes as well? Basically I have a list of usernames, each with a checkbox next to it. An admin person then needs to tick the checkboc next to a name, when the user has met certain criteria (say for example, pupils attending class).
When the form is submitted, a piece of code will send an email to a designated recipient (for example The Dean) with a list of attendees. But at the same time I also want to indicate which names weren't selected.
i.e.
"The following students attended the session:
John
Bob
Ann
Alex
Peter
The following students didn't attend:
Frank
Paul
Joe"
Does this make sense?
The question is, how do I see which are unchecked, but from a list dynamically generated? i.e. when the teacher choose the list of candidates, she has a list of criteria to choose from, which then generates the list. So the list could have 2 names or 20 names.
I need to capture dynamic form data in a PHP script, and would like to know how to capture un-checked checkboxes as well? Basically I have a list of usernames, each with a checkbox next to it. An admin person then needs to tick the checkboc next to a name, when the user has met certain criteria (say for example, pupils attending class).
When the form is submitted, a piece of code will send an email to a designated recipient (for example The Dean) with a list of attendees. But at the same time I also want to indicate which names weren't selected.
i.e.
"The following students attended the session:
John
Bob
Ann
Alex
Peter
The following students didn't attend:
Frank
Paul
Joe"
Does this make sense?
The question is, how do I see which are unchecked, but from a list dynamically generated? i.e. when the teacher choose the list of candidates, she has a list of criteria to choose from, which then generates the list. So the list could have 2 names or 20 names.