email person based on radio and select selections

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello...I have an html form with radio and select controls that I want
to email to a user but can't quite grasp the way I should set this up.

If someone selects "a" and "milk" I want it to email abc. If they
select "a" and "cookies" it should go to xyz. Any help would be

input type="radio" name="type" value="a"
input type="radio" name="type" value="b"
input type="radio" name="type" value="c"

<select name="location">

Re: email person based on radio and select selections kirjoitti:
Quoted text here. Click to load it

    } else if($_POST['location']=='cookies'){
    ... and so on...

then you just mail() to $reciever. No rocket science included.

"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)

Site Timeline