Jump to content


This topic is now archived and is closed to further replies.


Thanks for the link, can you take a look?

Recommended Posts

Thank you for the link. I am getting close, but this is not working.
I want the dropdown menu, when someone hits submit, to send the email (subject and message)to that person chosen in dropdown.
I appreciate your help.

$emails = array(
  0 => 'et@email.com',
  1 => 'jb@email.com' ,
  2 => 'rpec@email.com' ,
  3 => 'mkt@email.com' ,
if (!empty($_POST['email_to']) && in_array($_POST['email_to'], $emails)) {

  if (mail(  )) {
      echo 'Email sent';
?> [/code] <center>
<body bgcolor="#d0d0d0">
<h2>Please email us...</h2>
[code]<form action="mail2.php" method="POST">
  <input type="text" name="subject" size=50>
  <select name="email_to">
<option value="1">Ela Teirn -  Dir of Marketing</option>
<option value="2">Jen B -  Asia Sales</option>
<option value="3">Rick P -  Tech Support</option>
<option value="4">General Marketing Inquiry</option>

<textarea cols=40 rows=10 name="message"></textarea>
<input type="submit" value=" Send ">
</form> [/code] </body></center>

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.