Click to See Complete Forum and Search --> : Help for Green Java Guy


carlstev
11-20-2002, 02:48 PM
Can someone tell me if there is a script available that allows a viewer of an HTML form to place a check in more than one checkbox, of which the value of each are different email addresses.

Then the mailto command collects teh values and concatenates them with the appropriate separators for teh mailto command to work - abc@deffff.com, abcd@deffff.com, abcde@deffff.com

This would allow the viewer to email more than one predefined address with the contents of the form that they filled out.

Cheers

Carl

carlstev
11-22-2002, 05:27 PM
What is missing below to complete my goal, any ideas?

<script type=text/javascript>

function email(){
who=document.notify.who.value;
who1=document.notify.who1.value;
who2=document.notify.who2.value;
who3=document.notify.who3.value;
subj=document.notify.sub.value;
parent.location.href="mailto:"+who+";"+who1+";"+who2+";"+who3+"?subject="+subj+;
}
</script>
</head>
<body>
<CENTER>

<table><FORM name=notify>
<tr><td>test1@testxyzabc.com: <input name=who type=checkbox value="test1@testxyzabc.com"><BR></td></tr>
<tr><td>test2@testxyzabc.com: <input name=who1 type=checkbox value="test2@testxyzabc.com"><BR></td></tr>
<tr><td>test3@testxyzabc.com: <input name=who2 type=checkbox value="test3@testxyzabc.com"><BR></td></tr>
<tr><td>test4@testxyzabc.com: <input name=who1 type=checkbox value="test4@testxyzabc.com"><BR></td></tr>
<tr><td>Subject: <input name=subj type=text value=""><BR></td></tr>
<tr><td align=center><input type="button" value="Send E-Mail" onClick="email()"></td></tr>
</FORM></table>

</CENTER>