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...