List of possible php functions validation:
strip_tags()
nl2br()
htmlspecialcharacters()
escapeshellarg()
addslashes()
stripslashes()
realpath()
basename()
umask()
is_uploaded_file()
move_uploaded_file()
magic_quotes_gpc()
mysql_real_escape_string()
Now obviously some of these are not required for input validation but I thought I might as well list them.
Now I would like to make some function to check against at least half a dozen to these functions vs. the variable.
Example:
function validation($input) {
$input = strip_tags($input);
// if errors maybe list them
return $input;
}
$test_name = validation($_GET['name']);