hello all was wondering if anyone would know if it is possible to change the $toaddress in a form submission by what dropdown box is selected . kinda like
<?
if ($select==1)
toaddress ="lalala@yayaya";
elseif ($select==2)
toaddress="jjje@yadayada.com";
if ($select==0)
{ return;
echo"no box was selected";
{
?>
RE: select box in formailer
Moderator: General Moderators
personally I'd just use a switch:
-enygma
Code: Select all
switch($input){
case "1": $to="me@me.com"; break;
case "2": $to="you@you.com"; break;
case "3": $to="them@them.com"; break;
}