You are here: Re: VALIDATING MANDATORY FIELDS USING PHP NOT JAVA SCRIPT!?! « All PHP « IT news, forums, messages
Re: VALIDATING MANDATORY FIELDS USING PHP NOT JAVA SCRIPT!?!

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация