Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged validation



« Prev 1 2
  1. FAV

    Credit card validation using Codeigniter

    Validate the credit card number and cvv code
    PHP 15 views posted 5 years ago by satinfo30
  2. 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 8 views posted 6 years ago by apphp-snippets
  3. 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 11 views posted 6 years ago by ginoplusio
  4. 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 18 views posted 6 years ago by codingforever99
  5. 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 31 views posted 6 years ago by codingforever99
  6. FAV

    Credit card validation in php

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

    Javascript validation for text box . Special Characters, Numbers.

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

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

    Validates Numericals in a text box. Validates spaces in a text box.
    PHP 7 views posted 7 years ago by laxman2021
  9. 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 7 views posted 7 years ago by MGHollander
  10. 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 20 views posted 8 years ago by StevenW721
  11. FAV

    VALIDAR EMAIL Y STRING CON PHP

    Validacion de email y string con php
    PHP 6 views posted 8 years ago by serialk89
  12. FAV

    CI: clearing form after successful submit

    Within your view, you place something like: <?=>session->flashdata('feedback') ?>
    PHP 10 views posted 8 years ago by screon
  13. FAV

    Email Validation PHP Regex

    Full email validation with regex.
    PHP 14 views posted 8 years ago by nebojsac
  14. FAV

    Validacion y comparacion de variables (strleng, strpos y substr )

    PHP 4 views posted 8 years ago by serialk89
  15. FAV

    E-Mail Address Validation

    PHP saved by 2 people 8 views posted 8 years ago by frederichoule
  16. FAV

    PHP URL validation

    This function can be used to validate an URL
    PHP 10 views posted 8 years ago by peckham
  17. FAV

    Email Validation

    PHP 8 views posted 9 years ago by Turek
  18. FAV

    ID of POST, GET, COOKIE or SESSION - Validation

    PHP saved by 3 people 9 views posted 9 years ago by sb_01
  19. FAV

    Validate an email address.

    The following function does a very simple check on the supplied string to help ensure it is a valid email address.
    PHP 11 views posted 9 years ago by jprochazka
  20. FAV

    Validate a domain name.

    The following function validates and returns TRUE or FALSE if the supplied string could be a valid domain name format.
    PHP saved by 2 people 7 views posted 9 years ago by jprochazka
  21. FAV

    Validate email address

    Definitivo. Errore bassissimo.
    PHP saved by 6 people 15 views posted 9 years ago by tuffo19
  22. FAV

    Check Valid Email using filter_var

    PHP 6 views posted 9 years ago by sandrews_06
  23. FAV

    Simple Validation Class

    PHP saved by 1 person 6 views posted 9 years ago by james0rion
  24. FAV

    Codeigniter Numeric Dash Validation

    run as callback from form_validation->setrules ex: $this->form_validation->set_rules('cc_number','Credit Card #','required|max_length[20]|callback_alpha_dash_space');
    PHP 7 views posted 9 years ago by myke
  25. FAV

    Email Validation Function

    I used to have the strlen block and the 2 preg if blocks each separately return false throughout, but lately I'm in a single point of exit mindset. I cannot take credit for the regexps - I borrowed them from someone who borrowed them. If the real...
    PHP 4 views posted 9 years ago by philsown
  26. FAV

    E-Mail validation

    PHP 9 views posted 10 years ago by Michael01
  27. FAV

    Php date validate

    PHP provides many date manipulation devices and an entire suite of date functionality with the datetime class. However, this does not address date validation, that is, what format a date is received in. The PHP strtotime() function will accept many f...
    PHP saved by 3 people 6 views posted 10 years ago by kanampo
  28. FAV

    Validate emails with SMTP and PHP

    This function validate a mail address in a smart way: if the address to validate has a correct syntax (checked with regular expression), it tries to connect to the mx server of the address. This means that the program have to use the smtp protocol to...
    PHP saved by 6 people 10 views posted 10 years ago by ginoplusio
  29. FAV

    Image Validation

    PHP 0 views posted 10 years ago by ksantoshp
  30. FAV

    Mac Address validation on Zend Validate with regex

    PHP 11 views posted 10 years ago by gpupo
« Prev 1 2