Sorry I'm still really new to PHP but I was wondering if someone can give me a hand to get this to work? I'm a little confused
Something like
$name=htmlspecialchars($_POST['fname']);
$var2 = bad
if $name = $var2 redirect to error.html
else continue script
But I don't know the proper syntax. sorry if this is a stupid question