I am creating a form that allows people to ask a doctor a question. I have Name, Email, Question and Doctor fields. I would like the form to be emailed to the doctor selected from the dropdown field. Is this possible?
Thanks a million
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How would I tell my form to send the form to the doctor listed in the list I create? When setting up the form, there is a spot to put in where the form emails to but I would like it to email one of the two doctors in the option list.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am creating a form that allows people to ask a doctor a question. I have Name, Email, Question and Doctor fields. I would like the form to be emailed to the doctor selected from the dropdown field. Is this possible?
Thanks a million
Easy.
<select name="variable_name">
<option selected>default_name</option>
<option>name_1</option>
<option>name_2</option>
</select>
How would I tell my form to send the form to the doctor listed in the list I create? When setting up the form, there is a spot to put in where the form emails to but I would like it to email one of the two doctors in the option list.
Find the mail() function in the processor.php file.
if($doctor=="doctor_1") {
mail("doctor_1_email",....)
} else if ($doctor=="doctor_2") {
mail("doctor_2_email",....)
} else {
mail("my_email",....)
}
Thank you soooooooooooooo much -- it worked perfectly!! I truly appreciate you help on this. I hope you have a WONDERFUL day!!!
Sharron