Mulivalued parameters

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
dibyendra
Forum Newbie
Posts: 20
Joined: Tue Aug 12, 2003 2:26 am
Location: Nepal

Mulivalued parameters

Post 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
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post 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]">
?>
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
Post Reply