sendmail and checkboxes in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

sendmail and checkboxes in php

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

Thanks! You are Master.
Post Reply