Being a web programmer I am faced with the never ending task of verifying data thats coming in from forms on a web site. Its truly a repetitive (and rather boring) task. So I decided to write a rules based form verification script. I'm just wondering if there is some module out there that already does this so that I'm not reinventing the wheel. If it hasn't been made. What are your arguments for or against this type of module being made? And if its a good idea. Throw me some things you'd like to see on it.
What I mean by rules based:
the individual verifying the data creates a hash that has values describing the requirements of that particular input line.
i.e.
forms input line name is "bio" and its a text square.
%rule_hash = ( bio => {
type => "text",
no_html => 1,
format => <hash_ref of options*>,
no_null => 1,
maxsize => 1000
}
)
#* options based on Text::Format
Flames, constructive criticisms and likes are welcome
BMaximus