/    Sign up×
Community /Pin to ProfileBookmark

Mail Form CC option if radio button checked

Here it goes.

There is a mail form that has radio buttons (i.e. “send me info on: A. B. C.). Form is mailed to [email protected]

Is it possible to make a command to send a mail to [email protected] and put [email protected] on CC if one particular radio button option (C., for example) is checked on the form by a sender?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Jan 15.2003 — typically

this hsow you get this done

formName.action = "MAILTO:[email protected]?CC="+valueOfRadioButtonEmailAddress;

Hope this helps

Khalid
Copy linkTweet thisAlerts:
@DariaauthorJan 15.2003 — [size=1][color=darkblue] <form method="post" action="/cgi-bin/mailer/mailer.pl">


<table>

<tr>

<td>

<input type="radio" name="A" value="A">A.<br>

<input type="radio" name="B" value="B">B.<br>

<input type="radio" name="C" value="C">C.

</td>

</tr>

<tr>

<td>

<input type="hidden" name="ccto" value="[email protected]">

<input type="hidden" name="subject" value="doe.com">

<input type="hidden" name="receiver" value="[email protected]">

<input type="hidden" name="thankyoupage" value="http://www.doe.com/thankyou.html">

<input type="submit" value="Submit">

<input type="reset" value="Reset">

</td>

</tr>

</table>

</form>[/color]
[/size]


What can I apply to this format?
×

Success!

Help @Daria 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.18,
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,
)...