what's wrong with this ereg?

From: Date: Tue, 20 Aug 2002 16:11:59 +0000
Subject: what's wrong with this ereg?
Groups: php.db 
Request: Send a blank email to php-db+get-21252@lists.php.net to get a copy of this message
I am trying an email verification function, like this: if (empty($useremail)) || !eregi("^[A-Za-z0-9\_-]+@[A-Za-z0-9\_-] +.[A-Za-z0-9\_-]+.*", $email)) { $errmsg .= "The email address appears to be invalid\n"; } But it will not work, on one server I get this error: Parse error: parse error in /home/virtual/site109/fst/var/www/html/auth_dealers/user_input2.php on line 70 and on another server I get this error: Parse error: parse error, unexpected T_BOOLEAN_OR in /usr/local/apache/htdocs/auth_dealers/user_input2.php on line 70 What do I need to do to fix this? -- Chip Wiegand Computer Services Simrad, Inc www.simradusa.com chip.wiegand@simrad.com "There is no reason anyone would want a computer in their home." --Ken Olson, president, chairman and founder of Digital Equipment Corporation, 1977 (They why do I have 9? Somebody help me!)

« previous php.db (#21252) next »