Basic Secure PHP PDO login script

Discussion in 'PHP' started by luke ham, Apr 29, 2013.

  1. #1
    Hi, would anyone have any examples of a very secure PDO login script which best suits my needs.

    What I would like to do is the user enters their email in a form and when the submit button is pressed it displays 2 mysql fields (name and DOB) relating to their email.
     
    luke ham, Apr 29, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    validate input with preg_match
     
    EricBruggema, Apr 29, 2013 IP
  3. TKY_Publishing

    TKY_Publishing Well-Known Member

    Messages:
    270
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    7
    Articles:
    28
    #3
    I don't know if it's PDO, but it's definitely an excellent (and HIGHLY-FUNCTIONAL) example of OOP PHP programming;
    Awesome PHP Login Script
    and it works well! I love this script (and you may, also).
     
    TKY_Publishing, Jun 8, 2013 IP
  4. TKY_Publishing

    TKY_Publishing Well-Known Member

    Messages:
    270
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    7
    Articles:
    28
    #4
    @luke ham - DEFINITELY PDO.....

    Script users Register, Login, Online

    This is a PHP script to Register and Login users in a website, and shows the Online users.
    It has option to Log in with Facebook, Yahoo, or with a Google account.

    It is created with the method based on classes and objects (OOP). Uses PHP, MySQL and Ajax / JavaScript (with jQuery) [it can work also in browsers with JavaScript disabled]. The connection to MySQL is made with PDO.

    There ya go @luke ham!
     
    TKY_Publishing, Jun 8, 2013 IP