PDA

View Full Version : need email help


Switch17
11-02-2002, 09:46 PM
Could someone please tell how you would setup a pull down/drop down menu that will open to send an e-mail? I'd tried this, but it doesn't seem to work.

<select class=emails name=site onchange="formHandler(this.form)">
<option value="http://www.freedffl.com">Send E-Mail to:
<option value="mailto:TeamOne@xxxx.com">Team One
<option value="mailto:TeamTwo8@xxxx.com">Team Two
</select>

Thanks
Switch

Mhtml
11-03-2002, 12:03 AM
There is nothing wrong with that code, assuming that you have a javascript function called formhandler which will send the email..
also make sure you have </option> after each option...

PauletteB
11-03-2002, 11:46 AM
or use this

<form>
<select class=emails name=site onChange="location=(options[selectedIndex].value)">
<option value="javascript:void(0)">Send E-Mail to:</option>
<option value="mailto:TeamOne@xxxx.com">Team One</option>
<option value="mailto:TeamTwo8@xxxx.com">Team Two</option>
</select>
</form>

(remove the space in javascript)