Joe Rinehart wrote:
> <!--- Form validation --->
> <cfset errors = arrayNew(1) />
> <cfif not len(trim(form.name))>
>   <cfset arrayAppend(errors, "Please enter your name.") />
> </cfif>

[snip]

> <cfform name="myForm" action=""> >   <cfinput type="text" name="name" value="#form.name#"
> required="yes" message="Please enter your name." />

Joe, the first part is very clever. Thanks for that. But why have the
second error check using <cfform>. Won't the first code snippet do the
trick alone?

-------------
Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
www.OnPointSolutions.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to