|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can i Send For More than one mail
Hi Mates ..
I want to ask about a Sending Mails for Defined By Visitor using RadiaBox .. but how can know if he put Right at the radiobox or not , to know if he want to send mail for who .. i Hope you understood me .. ![]() |
|
#2
|
||||
|
||||
|
I think you're saying the following:
1. You want a set of radio buttons corresponding to different email addresses. 2. When somebody fills out the form, they select a radio button. 3. The email should go to the address corresponding to the radio button clicked. If so, then you need to check for $_POST["radio_name"] and use that value to determine which email address to send to. If I'm mistaken, you'll need to clarify your question. |
|
#3
|
||||
|
||||
|
I just reread the subject line. If you want to send to more than one email, you need to use checkboxes rather than radio buttons. When you name your checkbox, name it with brackets appended to the end:
Code:
<input type="checkbox" name="email[]" value="blah@blah.com"><br> <input type="checkbox" name="email[]" value="blah2@blah.com"> Then when you're processing the form submittal, treat $_POST["email"] as an array: PHP Code:
|
|
#4
|
|||
|
|||
|
Thanks Mr dhouston for Helping ..
That's what i want to know Exactly i was Thinking :- i can do that PHP Code:
I can do that .. i did not Try it but i think it works . Best Regards |
|
#5
|
||||
|
||||
|
Ara, the easiest way would probably be to assign it to an array like dhouston recomended, and do the foreach or a similar statement to step through each of the emails which you want to send the email to, I dont think that the
PHP Code:
|
|
#6
|
|||
|
|||
|
Thanks A lot
i will use dhousten Code .. Best Regards |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How can i Send For More than one mail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|