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.

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.

Comments

oiyioiu

Leave Your Comment

Comments may be edited for content or deleted at any time. Civilized discussion is welcome. Anyone spamming, going way off topic, or otherwise being a jerk will probably be deleted or banned.

User Information

pMcode is allowed for comment formatting. pop-up mini reference

Personalization Options

Comment Security