Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged validation
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5
1053
posted 15 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
872
posted 15 years ago by montanaflynn
Use this function to validate cookies set by Facebook Connect JS API
0
994
posted 15 years ago by ping_ch
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
1424
posted 16 years ago by dominicsayers
Checks for a valid email address using the php-email-address-validation class.
Source and docs = URL
0
836
posted 16 years ago by fruehjahr
A simple method of validating an IP address using PHP and regular expressions
2
3402
posted 16 years ago by aristoworks
This is a simple method of validating a 9-digit zip code using PHP and regular expressions
3
2520
posted 16 years ago by aristoworks
A simple method of validating an email address using PHP and regular expressions
4
1523
posted 16 years ago by aristoworks
A simple method of validating a telephone number using regular expressions and PHP
3
1692
posted 16 years ago by aristoworks
Basically what this algorithm does is to replace the first letter of the serial number by a number (each letter represents where the banknote is originally from), then it calculates the sum of all digits. If the remaining of the division of that sum...
0
704
posted 17 years ago by j_junyent
a function to check the validity of the postcode according to UK rules
0
3382
posted 17 years ago by valcartei