Click to See Complete Forum and Search --> : Mail Form CC option if radio button checked


Daria
01-15-2003, 10:08 AM
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 JOHNdoe@doe.com

Is it possible to make a command to send a mail to JOHNdoe@jdoe.com and put JANEdoe@doe.com on CC if one particular radio button option (C., for example) is checked on the form by a sender?

khalidali63
01-15-2003, 10:53 AM
typically
this hsow you get this done

formName.action = "MAILTO:mainMail@shaw.ca\?CC\="+valueOfRadioButtonEmailAddress;

Hope this helps

Khalid

Daria
01-15-2003, 11:19 AM
<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="jeffdoe@doe.com">
<input type="hidden" name="subject" value="doe.com">
<input type="hidden" name="receiver" value="johndoe@doe.com">
<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>

What can I apply to this format?