Hi,
I wrote the following regular expression which should report me an error. I dont want the user to input characters which are not from a-Z, A-z and . (period)
Which means that Greg S. or Mr. Greg S. should match but Greg S, or Greg S; or any combinations with numbers should not match. Somehow this script is not working...
if(!ereg("[ a-zA-Z.]+", $fname)) {
$error = 1;
}
Can somebody help?
Greg