in reply to CGI/PERL email form that will send to multiple address based on checkbox selection

Try this (a little condensed)...

if($in{'chkboxname1'}){
$in{'form-to'} .= ',group1@domain.com';
}
if($in{'chkboxname2'}){
$in{'form-to'} .= ',group2@domain.com';
}
if($in{'chkboxname3'}){
$in{'form-to'} .= ',group3@domain.com';
$in{'form-to'} =~ s/^,//;

--lnl

  • Comment on Re: CGI/PERL email form that will send to multiple address based on checkbox selection

Replies are listed 'Best First'.
Re: Re: CGI/PERL email form that will send to multiple address based on checkbox selection
by Anonymous Monk on Jun 18, 2003 at 18:06 UTC
    Thank you for your help, this worked....you are the man! My thanks goes to everyone for their time.