View Single Post
Old 17-04-2008, 20:41   #1 (permalink)
campbell
Web Hoster
 
Join Date: Jan 2008
Location: Canada
Posts: 122
Hidden Email in a Contact Form

I have a contact form and I want to have multiple recipients but I keep seeing scripts like this, which don't secure the email address of the recipients.

My current script is like this in the contact form file. However, the email isn;t being sent to the selected recipient. How can I fix that?

Quote:
<tr>
<td><p>Recipient</p></td>
<td><select name="Recipient" size="1" id="Recipient">
<option value="test1">John Doe 1</option>
<option value="test2">John Doe 2</option>
<option value="test3">John Doe 3</option>
</select>
</td>
</tr>

And like this in the processing script.

Quote:
$emailTo = 'test1'=> 'test1@live.com','test2'=> 'test2@hotmail.com','test3'=> 'test3@yahoo.com';
$rows[0]->extraemail = $emails[$_POST['Recipient']];
  Reply With Quote