Validate Email Address





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 Next »
2
Date Submitted Tue. Apr. 10th, 2007 9:39 PM
Revision 1
Helper snowdonkey
Tags Form | PHP | Validate
Comments 3 comments
The following script is a single interface for pre-validating any HTML form. It lets you validate your form data the way you want, while handling the rudimentary tasks itself.

1) Change just one variable to make it work with $_GET or $_POST or $_REQUEST.

2) Name which elements are 'required' all at once in a hidden HTML text input.

3) Easily provide field descriptions in hidden HTML text inputs that you can use to print error statements.

4) Call a single function to print out error statements that you can easily style with CSS.

5) It automatically checks if fields marked 'required' have been filled out.

Most of the pre-validation code is from PHP 5: Unleashed by Sams Publishing. I found it extremely useful for a recent project. Sharing it here, I removed some unnecessary functions, and tried to simplify some points.

All the comments are my own; hopefully I provided more than enough explanation.
6
Date Submitted Mon. Oct. 9th, 2006 5:51 AM
Revision 1
Helper serpentskiss
Tags "Email Address" | RegExp | Validate
Comments 1 comments
PHP function to validate an email address.
6
Date Submitted Thu. Aug. 31st, 2006 6:16 PM
Revision 1
Helper psykoprogrammer
Tags ColdFusion | RegExp
Comments 0 comments
Below is a function written in ColdFusion MX that will return an array containing all matches found when running a regex against a particular string. Each array item is a structure with the match, the starting character position, the ending character position, and an array of any
sub-pattern captures.
8
Date Submitted Sun. Feb. 19th, 2006 2:27 PM
Revision 2
Coder mattrmiller
Tags PHP | Referrer | Validate
Comments 6 comments
Fixed missing $ sign.
7
Date Submitted Mon. Oct. 10th, 2005 10:47 AM
Revision 1
Coder mattrmiller
Tags "Email Address" | PHP | Validate
Comments 4 comments
Validate Email Address
10
Date Submitted Mon. Oct. 10th, 2005 10:49 AM
Revision 1
Coder mattrmiller
Tags "Email Address" | MX | PHP | Validate
Comments 1 comments
Validate Email Address Against MX
-7
Date Submitted Thu. Oct. 13th, 2005 7:34 PM
Revision 1
Coder mattrmiller
Tags "Email Address" | CPlusPlus | Validate
Comments 4 comments
Validate Email Address
9
Date Submitted Fri. May. 26th, 2006 11:16 AM
Revision 2
Coder mattrmiller
Tags "Email Address" | Java | String | Validate
Comments 2 comments
Fixed the regular expression to check for more strict requirements.
4
Date Submitted Mon. Oct. 10th, 2005 3:47 PM
Revision 1
Coder mattrmiller
Tags Clean | ColdFusion | Output
Comments 0 comments
Clean Output
5
Date Submitted Mon. Oct. 31st, 2005 10:38 PM
Revision 1
Coder mattrmiller
Tags ColdFusion | HTML | Strip
Comments 1 comments
Strip HTML
« Previous 1 2 Next »