Re: HELP! form validation
| From: | Paul Waring | Date: | Wed, 08 Jun 2005 14:11:17 +0000 |
| Subject: | Re: HELP! form validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216620@lists.php.net to get a copy of this message | ||
On 6/8/05, Dave Sayer <dave@digitalmeme.com> wrote:
> 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.
You might want to have a look at the following links:
http://kalsey.com/simplified/form_errors/
http://www.sitepoint.com/print/practical-xml-form-validation
http://simon.incutio.com/archive/2003/06/17/theHolyGrail
I use a slightly modified version of Kalsey's method on my weblog and
it works quite well.
Paul
--
Rogue Tory
http://www.roguetory.org.uk