Posted by Starbuck on 05/05/06 03:00
"Ehsan" wrote:
> One more thing I forgot to add. For $fieldsToValidate to be accessible
> from validateFields() you can either define the array in a central
> configuration file (if you have any) as global variable or pass it in
> the function validateFields($fieldsToValidate).
>
> Thanks
>
> Ehsan
>
The only problem with using an array is that you have to display the errors
in a list to denote which fields haven't been keyed in. I want the label of
the mandatory fields that are empty to be highlight in red. But maybe that
is something I should be considering. Thanks for the feedback Ehsan. :)
Navigation:
[Reply to this message]
|