in reply to Re^2: CGI recipient Option
in thread CGI recipient Option

After the foreach $pair (@pairs) loop (because that's where %FORM is initialized), but before open(MAIL, ...) (because that's where $receipient is used).

Replies are listed 'Best First'.
Re^4: CGI recipient Option
by quissett (Initiate) on Sep 01, 2004 at 16:36 UTC
    Could you do an if/else? for example:
    $recipient='hdavis@whoi.edu' if($FORM{'ckusno'}); else $recipient='hdavis@whoi.edu';