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

maybe try seperating the addresses by commas ie
$address = "me@you.com, you@me.com";
I know that's not the same format you're using but you see what I'm getting at. if your variable you're pushing onto is not empty then push a comma, and the address, otherwise just push the address.. I could be way off-base, but that's my two cents.
  • Comment on Re: Re: Re: CGI/PERL email form that will send to multiple address based on checkbox selection
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: CGI/PERL email form that will send to multiple address based on checkbox selection
by Anonymous Monk on Jun 18, 2003 at 16:14 UTC
    actually you have the idea. But I don't think that would work because each group (checkbox on the form), has a seperate email associated to it. If you check only one, it shoud only send to the email associated to it, if you check more than one, then it should send to all email addresses that are associated to the checkboxes selected. Thanks!