Need someone to lead product management at your software company? I create software for people that create software and I'm looking for my next opportunity. Check out my resume and get in touch.

Form validation tools

Freshness Warning
This blog post is over 20 years old. It's possible that the information you read below isn't current and the links no longer work.

In the Simplified Form Errors comments, J. Shell mentions the use of a form validation toolkit.

I’ve evaluated a number of form kits and validators over the years for PHP, Java, ASP, and Perl. They all have fallen short of my expectations and the needs of real-world development. Some of them have faulty validation — letting things through that shouldn’t be or disallowing valid input. Others aren’t flexible enough to allow non-standard inputs. Sometimes I need a rather custom validation like 32 characters, numbers and lowercase letters only, no spaces. And many packages won’t let you inject your own error messages into the error output. For example, just because a username validates doesn’t mean someone can register it. There may already be someone using that name, so I’d need to insert an error that the user needs to pick a different name.

I’d certainly be open to a good form validator, either commercial or open source. Since I’ve recently been doing most of my development in PHP, a PHP form toolkit would be most useful. Any suggestions?

Adam Kalsey
July 31, 2003 9:56 AM

In doing a bit of poking around I came across VDaemon at http://www.x-code.com/vdaemon_web_form_validation.php which looks interesting. I'll try it out and report back. One concern is that it's GPL. While I can include and distribute the code in my applications, I'll need to add the GPL license to the form validation portions. And some clients might not like the idea of having part of their application licensed under the GPL.

Bart Vermeersch
July 31, 2003 10:55 AM

I guess you're not really into MS. I have done some work using asp.net validators and they were OK for me. The server generated client scripting whenever possible.

J.Shell
July 31, 2003 11:03 AM

The toolkit I mention, "Formulator," which is a Zope only toolkit, does allow customization of error messages and the ability to call custom validators (ie - calling a script to see if an email address is already registered). With some work, you can write custom widgets and more advanced validators. It's only real downfall is that there's no built in way to do group validation - ie, checking that a 'password' and 'password (validate)' field contain the same value. You can do such things manually after the form toolkit has done its field by field validation, but it would be nice to have it plugged in to the same validation framework. But that's a good set of evaluation points: - Customization of error messages for different validation failings - Custom validation (ie - calling a script or function that returns 'true' or 'false') - Multi-field validation

Ralph Guzman
August 7, 2003 12:38 AM

If you are looking for a PHP solution, take a look at PEAR. (http://pear.php.net). They have a library that allows you to create and validate forms more efficiently: http://pear.php.net/manual/en/package.html.html-quickform.php An alternative which I've been using is this form validation class that you can find here: http://www.phpclasses.org/browse.html/package/1.html Hope this helps.

Arvis
September 12, 2003 10:10 AM

The link to Adam Kalsey's form validator (http://www.x-code.com/vdaemon_web_form_validation.php ) does not work!!

fred
September 7, 2005 3:21 PM

In your simple validation form, how would you do the same for a list, field? Thanks. Fred.

This discussion has been closed.

Recently Written

Too Big To Fail (Apr 9)
When a company piles resources on a new product idea, it doesn't have room to fail. That keeps it from succeeding.
Go small (Apr 4)
The strengths of a large organization are the opposite of what makes innovation work. Starting something new requires that you start with a small team.
Start with a Belief (Apr 1)
You can't use data to build products unless you start with a hypothesis.
Mastery doesn’t come from perfect planning (Dec 21)
In a ceramics class, one group focused on a single perfect dish, while another made many with no quality focus. The result? A lesson in the value of practice over perfection.
The Dark Side of Input Metrics (Nov 27)
Using input metrics in the wrong way can cause unexpected behaviors, stifled creativity, and micromanagement.
Reframe How You Think About Users of your Internal Platform (Nov 13)
Changing from "Customers" to "Partners" will give you a better perspective on internal product development.
Measuring Feature success (Oct 17)
You're building features to solve problems. If you don't know what success looks like, how did you decide on that feature at all?
How I use OKRs (Oct 13)
A description of how I use OKRs to guide a team, written so I can send to future teams.

Older...

What I'm Reading

Contact

Adam Kalsey

+1 916 600 2497

Resume

Public Key

© 1999-2024 Adam Kalsey.