You are here: RE: [PHP] HELP! form validation « PHP « IT news, forums, messages
RE: [PHP] HELP! form validation

Posted by Jim Moseby on 06/08/05 17:20

> Hi php’ers,
>
> What would be the best method of validation a large (8
> stages) form written
> in php? The form validates using php at the moment but it
> only displays the
> errors in a group, what we want it to do is highlight the
> fields or labels
> for the incorrect entries (if that makes sense.) so the user
> can easily see
> where to correct their mistakes. Any advice, or links to good
> resources
> would be great!! I do not really know javascript so a php
> solution would be
> preferable.


Hi Dave - I sent you a private message with sample code attached. What I do
is, when the form is submitted, validate the fields, and if any are invalid,
redisplay the form with the fields pre-populated with the previous values
and change the background color of the fields in question.

JM

 

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

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