If you are trying to just validate the email you might also try to the email
validation function that php.net uses.  You can get it in the CSV area of
the site.

  _________________
 / Joshua Minnie    \
+                    +-------------------------------+
| Wild Web Technology                                |
| Independent Web Consultant/Developer               |
| [EMAIL PROTECTED]                               |
|                                                    |
| Tel : 616.890.1566                                 |
+----------------------------------------------------+

"Francisco Vaucher" <[EMAIL PROTECTED]> wrote in message
news:3B966ABC166BAF47ACBF4639003B11AC848AE9@;exchange.adtarg.com...
:
: Yes I know, but what I need is to check after the @.
:
: I think that regexp it's going to work fine. Erwin wrote something that i
: think it's going to work.
:
: Thanks!
:
: -----Mensaje original-----
: De: Justin French [mailto:justin@;indent.com.au]
: Enviado el: jueves, 24 de octubre de 2002 11:29
: Para: Francisco Vaucher; '[EMAIL PROTECTED]'
: Asunto: Re: [PHP] String manipulation
:
:
: Well, what you really trying to do?  Validate the format of an email
: address?  If so, what you really should be doing is looking for an
existing
: library of code which validates email address formats against the RFC
: standard.
:
: phpclasses.org is bound to have some, but I really like this one:
:
: http://killersoft.com/modules.php?op=modload&name=News&file=article&sid=2
:
:
: For your EXACT problem (making sure 'test.com' comes after the @), you
could
: use regular expressions... BUT [EMAIL PROTECTED] IS a valid email address,
: so you'd be running into problems pretty quick :)
:
:
: I looked into HEAPS of regexp's that claim to validate email address'...
: HEAPS of them had problems that would bounce VALIDly formatted email
: address... the killersoft one is the best I found...
:
:
:
: Justin
:
:
: on 25/10/02 12:12 AM, Francisco Vaucher ([EMAIL PROTECTED]) wrote:
:
: >
: > Hi to all (again ;-)
: >
: > I need one or more PHP functions to handle a form input.
: >
: > i.e. you write: [EMAIL PROTECTED]
: >
: > I have to check that after the '@' comes 'test.com'. I think this is
easy,
: >
: > Any help on this ?
: >
: > regards in advance...
: >
: > f.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to