James

Thank you for your detailed reply. Most helpful.

Another question - You stated that:
'When it comes to receiving data from the user, you should never trust it 
without some form of validation to make sure that the values are in the 
range you are expecting.  Failure to do so can lead to nasty surprises.'

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?


Jane Trimmer
Web developer

Is this you?
http://thecareerbreaksite.com/bored-at-work.php



------------------------ 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