how would i have my form send to a specific e-mail address according to what select option they choose?
i tried this
i tried this
echo " <form name='mailForm' method='post' action='mailsend.php' enctype='text/plain'> <select name='me' size='1'> <option value='webmaster'>Web Master</option> <option value='admin'>Admin</option> </select> <input type='submit'> </form> </body> </html> ";
$mailto = $_POST['me']; if($mailto == 'webmaster') { $email = "one@one.com"; }elseif($mailto == 'admin'){ $email = "two@two.com"; };