in reply to Validating the contents of scalars using an array based list
Where &complain() can translate var# into the HTML side field name (ie. "Phone number", instead of 'phone').my @varlist = qw(var1 var2 var3); foreach (@varlist) { if (!defined $cgi->param($_) || $cgi->param($_) eq "") { &complain($_); } }
Cheers all;
JP,
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --
|
|---|