I am trying to have a "Contact us" page with a drop down tab that you can select from 4 people to contact. I am trying to figure out how to link each one to a certin email address. I was only able to get it with one. Thanks for your help.
Hey, Thanks for the tips. I am trying to learn this for fun. I thought it would of been a little easier...lol Here is what I am trying to do now after your help... I am still not able to get it to send emails after clicking webmaster or general info. Any advice?
$from = "From: $visitormail\r\n";
case Webmaster:$to_email = mail("email@example.com", $subject, $message, $from);
case General Info:$to_email = mail("firstname.lastname@example.org", $subject, $message, $from);
default:$to_email = "email@example.com";}
It keeps goign to the defult email. I kept the echo in and it displays the correct choise in the upper left hand corrner. So it doesnt care which one i pick, it just sends it to default email. LOL whats going on with this
thanks for all your help. I was able to get the switch to work. I tried the attn instead of the other way and for some reason it worked. I tell you its a pretty good feeling when you see it work...lol