Results 1 to 4 of 4

Thread: Login Form Code

  1. #1

    Thread Starter
    Addicted Member Pc Monk's Avatar
    Join Date
    Feb 2010

    Resolved Login Form Code

    I did a search for it and i didn't find anything so i decided to write this piece of code and hope that it would help some people

    the index is for login and it use session so if the user is logged in it wont show the login box anymore
    the register part will check for the user exist first and then if the two password boxes are equal it will insert it into database

    if you have any suggestion or question don't hesitate
    just to remind you , you have to change the connect.inc.php to your own sql host , user ,password and database

    Last Update : Tuesday , May 28 , 2013
    Attached Files Attached Files
    Last edited by Pc Monk; May 28th, 2013 at 10:15 AM.

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Trivandrum, Kerala, India

    Re: Login Form Code

    Avoid those mysql_* functions. Because they are already depreciated!
    If someone told you that the water in a particular glass is contaminated, do you still try to drink it? No!
    Don't tell me that you are going to filter it and drink it.

    So, use PDO or mysqli instead of the legacy mysql functions.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3

    Thread Starter
    Addicted Member Pc Monk's Avatar
    Join Date
    Feb 2010

    Re: Login Form Code

    i was going to use sqli but i wanted to be old school but yeah the right 1 is sqli

  4. #4
    Join Date
    Mar 2015

    Re: Login Form Code

    Do you know how to connect a login form to a mongodb database?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.