Page 1 of 1

sendmail and checkboxes in php

Posted: Fri Nov 10, 2006 6:15 am
by amir
I have a sendmail form working well, except i have no idea how i would go about listing the checked boxes in the email.
so if they are checked it will list them in the email sent to me.

how do i go about that?

Posted: Fri Nov 10, 2006 7:01 am
by volka
checkbox parameters are transfered like any other form controls, as name=value pairs.
If a checkbox was "on" when the form was submitted you will find an element with the checkbox' name in either $_GET or $_POST.

Posted: Fri Nov 10, 2006 8:38 am
by amir
Thanks! You are Master.