Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generic HTML Forms and Mailto Question 1

Status
Not open for further replies.

sgore

Programmer
Jul 22, 2001
30
CA
I have a list box that includes four items:
for example:
Alpha
Beta
Chi
Delta

I want to use the selected value of the list box in the
TO and/or CC section of the mailto program. I would like to append it to
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;CC&quot; VALUE=&quot;<<APPEND LIST Value HERE>>@somewhere.com&quot;>

Can this be done? If so can someone please let me know how..

Thanks,

 
not with asp but a simple javascript will do it.
something like
<html>
<head>
<script language=&quot;javascript&quot;>
function giveValue(plc) {
frm.CC.value = plc + frm.CC.value;
alert(frm.CC.value); /*test*/
}
</script>
</head>
<boby>
<form name=&quot;frm&quot;>
<select name=&quot;plc&quot; onBlur=&quot;giveValue(frm.plc.options[frm.plc.selectedIndex].value);&quot;>
<option value=&quot;alpha&quot;>Alpha
<option value=&quot;beta&quot;>Beta
<option value=&quot;chi&quot;>Chi
<option value=&quot;delta&quot;>Delta
</select>
<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;CC&quot; VALUE=&quot;@somewhere.com&quot;>
</form>
</body>
</html>
admin@onpntwebdesigns.com
 
That worked great!!!

Thanks for your help. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top