in reply to How do I detect and handle empty form fields?

Are you using CGI.pm? If so, you could use something like this:
use CGI; my $query = new CGI; my @fields = qw/name phone email/; for my $field (@fields) { print "$field is not defined" unless defined $query->param($field); }
@fields should hold the fields that you want to validate. Does that make sense?