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

Thanks for your feedback. Does it matter where the #$recipient = 'test@test.edu' if ($FORM{'ckusno'}); goes?

Replies are listed 'Best First'.
Re^3: CGI recipient Option
by ikegami (Patriarch) on Sep 01, 2004 at 16:24 UTC
    After the foreach $pair (@pairs) loop (because that's where %FORM is initialized), but before open(MAIL, ...) (because that's where $receipient is used).
      Could you do an if/else? for example:
      $recipient='hdavis@whoi.edu' if($FORM{'ckusno'}); else $recipient='hdavis@whoi.edu';