I am trying to check a string to make sure it contains only alpha-numeric characters. I have tried the following, but it does not work:
if (!eregi("[a-z0-9]",$request)){ .....
(error code)......
What am I doing wrong. Shouldn't this tell me if there are nonalpha-numeric characters in the $request string and if so then go through the code to produce an error message.
if (!eregi("[a-z0-9]",$request)){ .....
(error code)......
What am I doing wrong. Shouldn't this tell me if there are nonalpha-numeric characters in the $request string and if so then go through the code to produce an error message.