Hi James - you seem to be talking about email-address checking from a
security point of view. I'd be interested to know the security implications
of someone submitting an un-checked email to, say, a members database. What
trouble could a malicious person cause in this way?

Tim in Ireland


----- Original Message ----- 
From: "James Keeline" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, September 26, 2005 8:00 PM
Subject: Re: [php-list] Re: php or javascript for forms?


> --- Jane Trimmer <[EMAIL PROTECTED]> wrote:
>
> > Using the textbook 'PHP Web Development with Dreamweaver MX 2004' as a
> > guide, I used these statements to validate email addresses:
> > $pattern = '/^\w[-.\w]*@([-a-z0-9]+\.)+[a-z]{2,4}$/i';
> >  if (!preg_match($pattern,$yourEmail))................
> >
> > and strip-tags to validate other input.
> >
> > Is this sufficient?
>
> It should be OK.  However...



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to