I'm trying to figure out why all input is generating a "Directions not alphanumeric" error. The $subdirections variable should contain the text input: /* Check if directions is not alphanumeric */ else if(!eregi("^([0-9a-z])+$", $subdirections)){ $form->setError($field, "* Directions not alphanumeric"); } Thanks for any tips.
ereg has been depreciated for a while now. Use preg_match() instead for all REGEX functionality in PHP. I believe thats correct as of 5.3 (poss 5.2) Thanks Andrew
Thanks. Sorry about the slow response. I think the problem is whitespaces. i'll try preg_match(). I was also looking at ctype_alnum.