Menu
I have built a little form where people submit their name and email address, which will go into an Email List and I will email them upon the launch of the website…
Basically, I would like to know if this is sufficient to Sanatize the form inputs or should I go the route of creating a function clean_inputs() { FILTER_SANITIZE_EMAIL }
[code=php]
//grab the data
$name = trim(stripslashes($_POST[‘name’])) ;
$email = trim(stripslashes($_POST[’email’])) ;
$email2 = trim(stripslashes($_POST[’email2′])) ;