Date: 07/14/06 (PHP Community) Keywords: no keywords I just encountered the strangest error ever: ... else if(empty($password1) || empty($password2) || $password1 != $password2) $message = "Password field may not be empty, and both fields must match"; else if(ereg('[^A-Za-z0-9]', $fname) || empty($fname)) ... The interpreter indicated the error was on the line with eregi - swapping the function calls (switch eregi with empty) eliminated the error. I have no idea what might have caused the error or even what it means. Any clues? Thanks.
|