Take a close look at the opening and closing parantheses
/ line 14 / if (ereg(".+@.+\..+$", $email)) == 0)
You open to contain the if statement, OK.
you open to contain the content of the ereg, OK
you close the content of the ereg, OK
but then whoops ?? you close straight before the comparison operator.
try :
/ line 14 / if (ereg(".+@.+\..+$", $email) == 0)
and i think that it should work this way