http://qs321.pair.com?node_id=430190


in reply to Re: Form Validation and Untainting
in thread Form Validation and Untainting

This is maybe a bit outthere/overkill for small systems but it could save you some code logic and is portable.

1. Define XML docs and XML schema for your all forms and use XSLT to generate your form pages.
2. use XML::Xerces to validate user input against the schema

Of course you are slightly restricted in what you can validate by the XML schema language