Coder Social home page Coder Social logo

contactvalidation's Introduction

ContactValidation

This way of store and read database is the optimal way to prevent SQL injection

Below are some examples of accepted inputs for Name: 'Bruce Schneier' 'Schneier, Bruce' 'Schneier, Bruce Wayne' "O'Malley, John F." "John O'Malley-Smith" 'Cher'

Below are some examples of unaccepted inputs for Name: "Ron O''Henry" "Ron O'Henry-Smith-Barnes" "L33t Hacker" '<Script>alert("XSS")</Script>' "Brad Everett Samuel Smith" "select * from users;"

Below are some examples of accepted inputs for Phone number:

"12345" "(703)111-2121" "123-1234" "+1(703)111-2121" "+32 (21) 212-2324" "1(703)123-1234" "011 701 111 1234" "12345.12345" "011 1 703 111 1234"

Below are some examples of unaccepted inputs for Phone number:

"123" "1/703/123/1234" "Nr 102-123-1234" '<script>alert("XSS")</script>' "7031111234" "+1234 (201) 123-1234" "(001) 123-1234" "+01 (703) 123-1234" "(703) 123-1234 ext 204"

Below are some examples of accepted inputs for street address:

795 E DRAGRAM Drive, TUCSON, AZ 85705-7598 795 E DRAGRAM Dr., TUCSON, AZ 85705 770W DRAGRAM Drive # 321, TUCSON, AZ 85703 2430 7th St, Washington, DC 20521-2430 Below are some examples of unaccepted inputs for street address: E DRAGRAM Drive, TUCSON, AZ 85705-7598 795 E DRAGRAM Dr, TUCSON, AZ 8570 770W DRAGRAM Drive # 321, TUCSON, 85703 2430 7th St, DC 20521-2430

contactvalidation's People

Contributors

suumaya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.