in reply to Re: form help
in thread form help

"cgi-lib.pl" is as dead as Perl 4. CGI is a much more robust solution that takes advantages of Perl 5 features (such as references). I would instead write something like:
#!/usr/bin/perl -wT use CGI; my $q = CGI->new(); my $fax = $q->param('fax'); my $email = $q->param('email'); print $q->header(); error('Please fill in all the required blanks') unless ($fax && $email); mail(); # print success method, redirect? sub error { print <<HTML; <HTML><HEAD></HEAD><BODY> <H3>$_[0]</H3><BR> </BODY></HTML> HTML exit 1; }
I'd also use Mail::Send or Mail::Mailer instead of opening a pipe directly to sendmail.