Page 1 of 1

Mulivalued parameters

Posted: Fri Sep 26, 2003 1:04 am
by dibyendra
Hello PHP Developers,
I Have a emails listed with checkboxes so that I can send the mail to members with checked box only.I'm wondering how can I know which checkbox is checked to send the email. I have a checkbox having values of member ID .Any help will be appreciated.
Thank you
Dibyendra

Posted: Fri Sep 26, 2003 5:59 am
by DuFF
I have never done this but have seen other posts that talk about this. Do a quick search and see what you can come up with. Heres what I think it is:

Code: Select all

<?php
<input type="checkbox" name="emailmember" value="member[1]">
<input type="checkbox" name="emailmember" value="member[2]">
<input type="checkbox" name="emailmember" value="member[3]">
?>

Posted: Fri Sep 26, 2003 6:40 am
by JayBird
...then you will have an array called member which shoud contain the id's of the user you want to send emails to.

MArk