perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gavin Carr <ga...@openfusion.com.au>
Subject Re: Form Validate Error
Date Tue, 13 Aug 2002 01:25:08 GMT
On Mon, Aug 12, 2002 at 09:18:27PM -0400, Justin M. Harrison wrote:
> Rules.pm:
> 
> sub loginform {
> return([
> 	[-key => 'username',
>   	-name => 'username'

Missing comma. :-)

>   	-msg => "Username was not entered",
>   	required=>1.
> 	-msg => "Username was too short",
> 	length_min=>1,
> 	-msg => "Username was too long",
> 	length_max=>15,
> 	],
> 	[-key => 'password',
> 	-name => 'password',
>   	-msg => "Password was not entered",
>   	required=>1.
> 	-msg => "Password was too short",
> 	length_min=>1,
> 	-msg => "Password was too long",
> 	length_max=>15,
> 	]
> ]);
> }
> 
> 1;

-- 
Open Fusion Pty. Ltd. - Open Source Business Solutions
http://www.openfusion.com.au
- Fashion is a variable, but style is a constant - Programming Perl

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message