Welcome To Snipplr


Everyone's Recent Snippets Tagged validation



The source below is the function from the website with the corrected regular expression found in the site's comments. This is a nigh-one-line function for validating a string as an email address.
4 158 posted 10 years ago by Winkyboy
There are multiple ways of checking email adresses about their validity. This script is based on RFC 2822. Please note that based on RFC 2822 [email protected] is considered valid. The second snippet is the one I prefer, which only accepts T...
2 200 posted 10 years ago by pacey
<form> <input>
0 105 posted 10 years ago by hotdiggity
1 69 posted 10 years ago by mcarneiro
This script tries to detect whether an HTTP Proxy works or not. It uses the HEAD command (high-level version of the lwp-request command) to connect to a given URL (http://www.google.com by default) via the given HTTP Proxy. It takes 2 arguments; the...
0 79 posted 11 years ago by sensimevanidus
This is a slightly hard core email check. I work for clients that want real email addresses. They pay quite a bit of money so yes, I am going to give what they want...
3 110 posted 11 years ago by brownrl
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5 115 posted 11 years ago by brownrl
This is a short and sweet snippet that will save the users form input after PHP runs validation and returns false. Very good for User Experience!
0 87 posted 11 years ago by montanaflynn
Use this function to validate cookies set by Facebook Connect JS API
0 92 posted 11 years ago by ping_ch
4 725 posted 11 years ago by fackz
JavaScritp Form Validation Framework to validate form fields on the fly, no programming knowledge required.
0 84 posted 11 years ago by clickfind
Validating a decimal such as a measurement of time or currency (10.5 or 0.4). This function will return the correct number. If you feed in "10.5foo" the function will spit back 10.5. If you feed in "bar" the function will return nothing.
0 64 posted 11 years ago by blackf0rk
Founds this via http://www.flashcomguru.com/index.cfm/2009/2/17/regexp-validate-url
1 128 posted 11 years ago by allnatural
A very easy to use script for validating your forms.
2 92 posted 11 years ago by sarfraznawaz2005
A PHP function that correctly validates all parts of a given email address, according to RFCs 5322, 5321, 1123, 2396, 3696, 4291, 4343, 2821 & 2822. I’ve released it under a license that allows you to use it royalty-free in commercial or non-commer...
4 124 posted 11 years ago by dominicsayers
Validate any string programmatically via regular expression.
0 74 posted 11 years ago by leonbda
Checks for a valid email address using the php-email-address-validation class. Source and docs = URL
0 89 posted 11 years ago by fruehjahr
Wordpress function
1 126 posted 11 years ago by Tate
I came across this little snippet... and thought it was rather nice.
0 73 posted 11 years ago by gembry
Always always always backup client side validation with server side validation! =D
2 121 posted 11 years ago by charmcitycoder
These are code snippets from different files for a Pylons project that show a working (provided the environment) htmlfill example.
1 186 posted 11 years ago by wackysalut
strip non alphanumerical characters while typing
1 79 posted 11 years ago by ginoplusio
a set of function useful to check data (functions name in italian but easy to translate).
0 111 posted 11 years ago by ginoplusio