filtering form inputs

trungkiencva

New Member
I have a simple contact form with name, email, a select list, and textarea. In my mailer php script I'm trying to add a simple filter to prevent SQL injection or other forms of hacking. For example, I'm using \[code\]$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS);\[/code\]Is this good?
 
Back
Top