Validate Email Address
5
This is a simple function to check if an email is valid or not.
2
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.
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.
10
A simple snippet for using single pass DES encryption. Uses the .NET framework functions. Enjoy!
6
PHP function to validate an email address.
6
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.
sub-pattern captures.
5
Simple function to check for a valid email address. Makes sure the @ and a . are in the right place. There is most likely a perl package on CPAN that would be more extensive, but this happens to work for my uses.
6
Scriptname: WhatsUpCF.cfm
Author: Ernest Breau Jr.
StartDate: 08/02/2006
EndDate: 08/02/2006
Description: This script returns the status of a web page
Dependancies: CFHTTP
Usage:
cf_WhatsUpCF
url="http://#qry_detail.DomainName#"
timeout="1"
SendMail="yes"
MailTo=""
MailFrom=""
MailServer="localhost"
var="WhatsUpCF"
Author: Ernest Breau Jr.
StartDate: 08/02/2006
EndDate: 08/02/2006
Description: This script returns the status of a web page
Dependancies: CFHTTP
Usage:
cf_WhatsUpCF
url="http://#qry_detail.DomainName#"
timeout="1"
SendMail="yes"
MailTo=""
MailFrom=""
MailServer="localhost"
var="WhatsUpCF"
4
This is a little script I wrote that copies your database through a cfquery statement
Enjoy,
Ernie
ernest.breau@gmail.com
Enjoy,
Ernie
ernest.breau@gmail.com
7
So... this is a simple and great
way for validate email address using regular expressions. happy programming!
9
Fixed the regular expression to check for more strict requirements.









