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