if((!isset($error)) and (!ereg("^[_0-9a-z]*$",$nicker))) $error="The nickname needs to be composed of letters, numbers and underscores ";
无忌哥哥2018-07-17 09:42:21
This means both must be judged, not just one, so using and and or are used to judge only one condition.