PHP Form Validation
Evolt had an article a while back about form validation in PHP. I read it at the time and it was okay, but didn’t really seem like anything new to me.
Simon Willison has been working on a bit of a different approach that looks incredibly interesting, though. The basic idea is to embed some validation information with the form in your source code (which would be stripped before sent to a client) and use that along with some backend PHP functions/classes to perform the validation, return messages, and pre-populate forms that contain errors. If it works it really might be the “Holy Grail” of form validation.
Unfortunately, it also seems like it would be nearly impossible to be able to integrate it with existing tools/systems—basically, it only looks useful for hand-rolled forms. Better than nothing, of course.
Posted Tuesday June 24, 2003 in Web Development by Chris Curtis
This is an older entry and as such, it may be by a guest author or contain formatting problems / extraneous code. If you notice something wrong with the entry, please use the Contact page to let me know the entry title and issue.
oiyioiu
By rturuy on May 5, 2004 at 12:41pm link