Welcome To Snipplr


Everyone's Recent Snippets Tagged validation



« Prev 1 2 3 4 5 6
  1. FAV

    Rescuing From RecordNotUnique

    Use rescue_from ActiveRecord::RecordNotUnique when DB transaction fail on uniqueness check
    Rails 5 views posted 5 years ago by yaworsk
  2. FAV

    Credit Card Parser & Validator

    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...
    JavaScript 7 views posted 5 years ago by geneticcode
  3. FAV

    email address validation

    I simple find to validate a user email address.
    ColdFusion 1 views posted 5 years ago by dreamstarter
  4. FAV

    Coldfusion Email validation

    A simple find function on an email string to identify of the string is a correctly formatted email address.
    ColdFusion saved by 2 people 5 views posted 5 years ago by dreamstarter
  5. FAV

    Credit card validation using Codeigniter

    Validate the credit card number and cvv code
    PHP 8 views posted 5 years ago by satinfo30
  6. FAV

    US Phone number validation - Jquery

    Validating phone number using jquery
    jQuery 3 views posted 6 years ago by satinfo30
  7. FAV

    Validate IP Address in PHP

    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.
    PHP 4 views posted 6 years ago by apphp-snippets
  8. FAV

    Block temporary email account and email validation

    Sometimes fake users use temporary emails account. Block them within email validation function.
    PHP saved by 2 people 4 views posted 6 years ago by ginoplusio
  9. FAV

    url, email and ip validation with php

    Simple PHP functions to validate url, email address and ip, functions will return TRUE for valid data and FALSE for invalid data.
    PHP 13 views posted 6 years ago by codingforever99
  10. FAV

    username, password and date validation with php

    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.
    PHP 14 views posted 6 years ago by codingforever99
  11. FAV

    Email Validated Input - HTML5

    HTML5 input field with strict email validation
    HTML 3 views posted 6 years ago by tcspinks
  12. FAV

    Javascript - Validate number of days in a given month

    How would you validate the number of days in a given month?
    JavaScript 7 views posted 6 years ago by satie83
  13. FAV

    Check if a file is an executable.

    A function to check the first two bytes to see if they match "MZ" marking it as an executable.
    C# saved by 1 person 5 views posted 6 years ago by jprochazka
  14. FAV

    Credit card validation in php

    Validate the credit card number is valid or not
    PHP saved by 2 people 6 views posted 6 years ago by satinfo30
  15. FAV

    email validation

    Use a regex to check the email address input
    JavaScript saved by 16 people 77 views posted 6 years ago by dreamstarter
  16. FAV

    Email Validation in JavaScript

    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.
    JavaScript saved by 3 people 8 views posted 6 years ago by apphp-snippets
  17. FAV

    Allow only numberic key presses.

    The following code allows only numeric characters to be entered.
    JavaScript saved by 1 person 10 views posted 7 years ago by jprochazka
  18. FAV

    Validate if a string is a Date

    Returns true if the string 'value' is a valid date.
    Groovy 3 views posted 7 years ago by agarcim
  19. FAV

    Javascript validation for text box . Special Characters, Numbers.

    Special chars, Numbers validation.
    PHP 2 views posted 7 years ago by laxman2021
  20. FAV

    Onkeypress event Javascript spacekey event Validation for (Integers, Spaces) Textbox.

    Validates Numericals in a text box. Validates spaces in a text box.
    PHP 1 views posted 7 years ago by laxman2021
  21. FAV

    JQuery Email Field Validation

    Used to automatically give feedback on email address validity.
    jQuery 11 views posted 7 years ago by boondoklife
  22. FAV

    EU VAT Validation

    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
    PHP 3 views posted 7 years ago by MGHollander
  23. FAV

    Validar solo el ingreso de String con Javascript

    Valida por medio del metodo onkeypress de un campo input, que solo se ingresen string /[a-zA-Z]/
    JavaScript 1 views posted 7 years ago by serialk89
  24. FAV

    Flexible JavaScript Date Validation w/ Regex

    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.
    JavaScript 2 views posted 8 years ago by pumpkinthehead
  25. FAV

    Password Hash and Validation

    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...
    PHP saved by 3 people 14 views posted 8 years ago by StevenW721
  26. FAV

    Jquery validation plugin

    jQuery 5 views posted 8 years ago by haidaica
  27. FAV

    isEmail Function

    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
    JavaScript 5 views posted 8 years ago by alberomo
  28. FAV

    isFilled (form element) Function

    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
    JavaScript 1 views posted 8 years ago by alberomo
  29. FAV

    jQuery validation additional method german date

    An additional method for the jQuery validation plugin to validate a german date (dd.mm.YYYY) based on DateITA method.
    jQuery 2 views posted 8 years ago by tuuul
  30. FAV

    Validate email address

    Other 1 views posted 8 years ago by antti
« Prev 1 2 3 4 5 6