Welcome To Snipplr


Everyone's Recent Snippets Tagged validation



« Prev 1 2 3 4 5 6
This is used to validate a date in a specific format. The code example is to validate whether it is a valid dd/MM/yyyy Date Format.
0 208 posted 1 month ago by jlustre
Use rescue_from ActiveRecord::RecordNotUnique when DB transaction fail on uniqueness check
0 21 posted 5 years ago by yaworsk
With publicly available information and a little math it is possible to not only validate a given card number, but to determine the financial institution that issued the card, the type of industry the issuer belongs to, the actual account number and...
0 36 posted 5 years ago by geneticcode
I simple find to validate a user email address.
0 41 posted 5 years ago by dreamstarter
A simple find function on an email string to identify of the string is a correctly formatted email address.
1 33 posted 5 years ago by dreamstarter
Validate the credit card number and cvv code
0 55 posted 5 years ago by satinfo30
Validating phone number using jquery
0 60 posted 6 years ago by satinfo30
This code demonstrates a simple way to validate IP address using preg_match() PHP function. This is a very simple code, that allows you to perform this task quickly with a minimum lines of code.
0 28 posted 6 years ago by apphp-snippets
Sometimes fake users use temporary emails account. Block them within email validation function.
1 29 posted 6 years ago by ginoplusio
Simple PHP functions to validate url, email address and ip, functions will return TRUE for valid data and FALSE for invalid data.
0 44 posted 6 years ago by codingforever99
Simple PHP functions to validate username, password and date, functions check the input format and allowed characters and then return TRUE for valid data and FALSE for invalid data.
0 104 posted 6 years ago by codingforever99
HTML5 input field with strict email validation
0 24 posted 6 years ago by tcspinks
How would you validate the number of days in a given month?
0 37 posted 6 years ago by satie83
A function to check the first two bytes to see if they match "MZ" marking it as an executable.
1 60 posted 6 years ago by jprochazka
Validate the credit card number is valid or not
1 36 posted 6 years ago by satinfo30
Use a regex to check the email address input
4 116 posted 6 years ago by dreamstarter
One of the important things about user input is to verify that the user has supplied the email that you have requested. The function below allows you to verify email address with easy.
1 30 posted 7 years ago by apphp-snippets
The following code allows only numeric characters to be entered.
1 31 posted 7 years ago by jprochazka
Returns true if the string 'value' is a valid date.
0 47 posted 7 years ago by agarcim
Special chars, Numbers validation.
0 19 posted 7 years ago by laxman2021
Validates Numericals in a text box. Validates spaces in a text box.
0 23 posted 7 years ago by laxman2021
Used to automatically give feedback on email address validity.
0 34 posted 7 years ago by boondoklife
Look if the given input could be a legal VAT-number. Accepts input with or without '.' between the numbers and must contain a County-code
0 38 posted 7 years ago by MGHollander
Valida por medio del metodo onkeypress de un campo input, que solo se ingresen string /[a-zA-Z]/
0 28 posted 8 years ago by serialk89
Find the date with or without a year and with double or single digit month or day. Easily extendable to other date delimiters and formats.
0 29 posted 8 years ago by pumpkinthehead
Calling generateHash() with a single argument (the plain text password) will cause a random string to be generated and used for the salt. The resulting string consists of the salt followed by the SHA-1 hash - this is to be stored away in your databas...
3 36 posted 8 years ago by StevenW721
0 31 posted 8 years ago by haidaica
Check if user has intruded a real email address. Return true (real email) or false (fake email). Arguments: Element from a form. From book Dom Scripting by Jeremy Keith
0 45 posted 8 years ago by alberomo
Arguments: Element from a form. Take that element and checks if is filled. If not, returns false. If is filled, returns true. From book Dom Scripting by Jeremy Keith
0 34 posted 8 years ago by alberomo
An additional method for the jQuery validation plugin to validate a german date (dd.mm.YYYY) based on DateITA method.
0 48 posted 8 years ago by tuuul
« Prev 1 2 3 4 5 6