Originally posted by stolzyboy
that can also be done with PHP, there is an array created called $_POST when you post the form, you can then loop thru the array, and check the fields however you would like, with regex, pcre (perl compatible regex) or any other way you want, striptags, htmlentities, str_replace, is_numeric, etc....
Thanks stolzyboy! I actaully though of that, just do a foreach look with the $_POST array and do the checking.
THe only thing is, well, without knowing the information or the purpose of the form, I won't know what to check. For example, if I say, I want to restrict the length of the fields to be 500 chars. But then I don't know if this is an appropiate maximum length for the fields.
I guess the only difficult part about this is that it has to be generic. I don't even know if it is possible. Someone suggested that maybe I can add some hidden fields that would carry information about that particular field. But that, I need to make sure every programmer write a hidden field for each of the fields in their form.
One thing I was thinking of was, maybe I can check for things that has nothing to do witht he content of the form. I really have no idea.
But thanks a lot for all your help, any more suggestions are welcome 🙂