I'm using Mason and creating an HTML form which does validation. The form "POSTs to itself" by passing the same values back, and loading them into the UI elements (e.g. text boxes). It validates each value, and if something is wrong, will color the UI element red (i.e. by adding a CSS error class to the class list).
I've done a simple example by hand just to see what is required.
I'm now looking for a perl class library that helps do these types of simple form validation (posting back, resetting UI values, validating UI, etc.).
Can anyone recommend a good library for this?