Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Below is a sample of some of the fields in my form.
SMTP group 1 : checkbox (this will send out to SMTP address if selecgted)
SMTP group 2: checkbox (this will send out if selected)
SMTP group 3: checkbox (this will send out if selected)
Optional Email to sendout: < input field > - this is what I want to add, if a user puts in an additonal SMTP address, this form will also send it to that address, along with the selected checkboxes....
if($in{'ChkboxName1'}){ $in{'form-to'} .= ',EmailGroup1@Domain.com'; } if($in{'ChkboxName1'}){ $in{'form-to'} .= ',EmailGroup2@Domain.com'; } if($in{'ChkboxName1'}){ $in{'form-to'} .= ',EmailGroup3@Domain.com'; } $in{'form-to'} =~ s/^,//;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI / Perl form to email from input field.
by Tomte (Priest) on Jun 19, 2003 at 22:10 UTC | |
Re: CGI / Perl form to email from input field.
by waswas-fng (Curate) on Jun 19, 2003 at 22:15 UTC | |
Re: CGI / Perl form to email from input field.
by dash2 (Hermit) on Jun 20, 2003 at 00:19 UTC |