When I run the following script it returns String Okay! when it should say
Invalid Characters Found. I've tried the script substituting $ for other
characters, such as j, and it works just fine. What do I need to do?



<?php

$input = "johnon@company.$com";

if (ereg("[$]", $input)) {
 die("Invalid Characters Found.");
} elseif (ereg("[[:space:]]", $input)) {
 die("Whitespace found.");
} else {
 echo "String okay!";
}


?>


Thanks,

Drew



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to