/    Sign up×
Community /Pin to ProfileBookmark

Help for Green Java Guy

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 – [email][email protected][/email], [email][email protected][/email], [email][email protected][/email]

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

Cheers

Carl

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@carlstevauthorNov 22.2002 — 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>[email protected]: <input name=who type=checkbox value="[email protected]"><BR></td></tr>

<tr><td>[email protected]: <input name=who1 type=checkbox value="[email protected]"><BR></td></tr>

<tr><td>[email protected]: <input name=who2 type=checkbox value="[email protected]"><BR></td></tr>

<tr><td>[email protected]: <input name=who1 type=checkbox value="[email protected]"><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>
×

Success!

Help @carlstev spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...