in reply to Empty Fields

If you are getting them from a cgi post, the empty fields will not be sent by most browsers, Have a list of the fields you require, @required, and check cgi params against that. grep is a good way to avoid clutter.

my @needed = grep {!$cgi->param($_)} @required; if (@needed) {...};

After Compline,
Zaxo