Associate
- Joined
- 19 Oct 2002
- Posts
- 1,925
- Location
- Welling/London
Am using the following code for email address validation on contact:
!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $email
It no longer works as ereg has been deprecated, can anybody help me with an alternative?
!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $email
It no longer works as ereg has been deprecated, can anybody help me with an alternative?