Hi I have a lot of input validation in my script.
The first to see if the input field is empty is function ok.
if ($first=="") {$error.="First name is missing. ";}
But the second one here is not.
if ($first!=ctype_alpha) {$error.="Your have to use ALPHABET characters only."; }
I have tryed to write this: ($first!='ctype_alpha') and this: ($first!="ctype_alpha") but notting works.
🙁 Only if I type the exact word ctype_alpha in the input field I don't get an error.
Please help, thanks