I'm a little above a newbie with web programming and I don't know much about form validation. In my research, it seems that there are a variety of ways to validate form data and some of the methods depend on what you're going to do with the data. Then you have to-be deprecated functions like mysql_real_escape_string
and something called "PDO" and the whole thing is downright complicated.
So, would it be reasonable/feasible for there to be a set of functions that are basically the standard way to validate form data? Like this...
function validate_for_sql()
function validate_for_email()
function validate_for_browser()
Maybe there should be more (something for integers?). The ideal would be things like sql injections and other nasties could ALL be handled via a set of generally accepted and rock-solid functions developed by and for the coding community.
Is this doable? Does it already exist somewhere.. maybe in a hidden lair? If so, can someone email me the secret password needed to access this information? :)