Hi
im very new to PHo and well, coding in general so this may seem an obvious. But im trying to send send the form ive built out to different people depedning on a drop down selection tey have made.
I came across this:
HTML code:
<select name='department' id='department'>
<option value='man1@website.com'>Department 1</option>
<option value='man2@website.com'>Department 1</option>
<option value='man3@website.com'>Department 1</option>
<option value='man4@website.com'>Department 1</option>
</select>
php:
$email_to = $_POST['department'];
this actually worked fine, but im wondering if there is a way to send to more than one email address, something like:
<select name='department' id='department'>
<option value='man1@website.com, man2@website.com'>Department 1</option>
</select>
That literally wont worked as ive found out, but can something similar work?
any help is very much appreciated
Thanks
Jools