Need help with sending to multiple email addresses
Posted: Sat Oct 16, 2010 5:18 am
Hi
Apologies as this may seem like a trival matter, but im new to coding and just need a bit of help....
I have a form which includes a drop down menu of various departments. Depending on which department is chosen, the form is then sent to different people.
This is the html code for the drop down:
<select name="department" size="1" id="department">
<option value="" selected>Please select</option>
<option value="Health & Safety">Health & Safety</option>
<option value="Property">Property</option>
<option value="Litigation & Insolvancy">Litigation & Insolvancy</option>
<option value="Family Law">Family Law</option>
<option value="Company Law">Company Law</option>
<option value="Wills, Trusts & Probate">Wills, Trusts & Probate</option>
<option value="Employment Law">Employment Law</option>
<option value="General Enquiry">General Enquiry</option>
</select>
So for example the first option mails out to mrjones@email.com mrsmith@email.com and the second would go to mrbloggs@emai.com mr@black@email.com and mrwhite@email.com etc...
I have a separate php file which gathers the variables so i was thinking an if statement would need to be put into this page?
Any help very much appreciated
Thanks
Jools
Apologies as this may seem like a trival matter, but im new to coding and just need a bit of help....
I have a form which includes a drop down menu of various departments. Depending on which department is chosen, the form is then sent to different people.
This is the html code for the drop down:
<select name="department" size="1" id="department">
<option value="" selected>Please select</option>
<option value="Health & Safety">Health & Safety</option>
<option value="Property">Property</option>
<option value="Litigation & Insolvancy">Litigation & Insolvancy</option>
<option value="Family Law">Family Law</option>
<option value="Company Law">Company Law</option>
<option value="Wills, Trusts & Probate">Wills, Trusts & Probate</option>
<option value="Employment Law">Employment Law</option>
<option value="General Enquiry">General Enquiry</option>
</select>
So for example the first option mails out to mrjones@email.com mrsmith@email.com and the second would go to mrbloggs@emai.com mr@black@email.com and mrwhite@email.com etc...
I have a separate php file which gathers the variables so i was thinking an if statement would need to be put into this page?
Any help very much appreciated
Thanks
Jools