Forums

sending form to a specific e-mail address

kade119 19 Feb, 2008
how would i have my form send to a specific e-mail address according to what select option they choose?

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";
}; 
Max_admin 20 Feb, 2008
Hi,

do you have Joomla and ChronoForms ? did you try the test forms ?

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.