Jan 22, 2001, 7:00 PM
Post #1 of 4
I am trying to edit a cgi script so that a user can pick which person an e-mail is going to. Right now, I have MAIL "To: $recipient = 'email@address' the html page calls mail.cgi with a submit button; in the form data of the one I'm working on, I have:
e-mail to different addresses
<input name="person" type="radio" value="$recipient1"> Ginny
<input name="person" type="radio" value="$recipient2"> Bill
with $recipent1 being my e-mail address, and $recipient2 being Bill's e-mail address.
I am trying to call this up using:
MAIL "To: @recipient
with this being:
@recipient = (recipient1, $recipient2);
$recipient1 ='email address #1'
$recipient2 = 'email address #2'
I know I'm doing this wrong, because it's not working. So, how can I have a radio box on the html form next to the name of the person that a visitor wants to e-mail, which would then indicate in the script which e-mail address the letter should be sent to? I don't want the e-mail address to be visible in the html code; so I'm trying to do it in a cgi script.
Any help you can provide would be appreciated!