How to sanitze user input before mailing in PHP Server Side Scripting Language?

editAnswer

reportReport

Answer(s) available: 1

Madhur Hans

, Market Research Analyst, Operational Excellence

"

Sanitize the post variable with filter_var().

"

Example here. Like:

"
echo filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);   "
"

thumb_upUpvote16

smsComment

reportReport