Sometimes we need to validate if user has entered the correct email id format or not in contact form or signup
form or guest book. In PHP we can use regular expression to validate if the user entered emailid is in correct
format or not. Below code sample of a method just does the same. If you have any queries please post at PHP
category in the forum and I'll try to answer.
The Develop rock-solid code in PHP series is about solving practical real-life problems in medium- to large-scale applications. With a sharp focus on new features available in PHP 4, the articles shed light on numerous tips and tricks that make life easier. Inside, you will find plenty of examples and techniques to learn, with lots of sample code. In this first article, PHP veteran Amol Hatwar gives a higher perspective for designing and writing bug-free, maintainable code for medium- to large-scale Web applications.
This tutorial is designed for an advanced PHP programmer. It assumes you know how to handle cookies. (See Feedback with a Cookie to learn about using cookies.) You should also know how to pass data from one page to another using the POST and GET methods
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.