User Tag List

Results 1 to 5 of 5

Thread: [PHP] Login Code

  1. #1

    Default [PHP] Login Code

    Has no MySQL whatsoever and is completely based on variables.

    PHP Code:

    // Define your username and password
    $username "username";
    $password "password";

    if (
    $_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {

    <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <p><label for="txtUsername">Username:</label>
        <br /><input type="text" title="Enter your Username" name="txtUsername" /></p>

        <p><label for="txtpassword">Password:</label>
        <br /><input type="password" title="Enter your password" name="txtPassword" /></p>

        <p><input type="submit" name="Submit" value="Login" /></p>


    } else {




  2. #2

    Default one defines pass username like this.
    I think I can, can I think, then I think I can ...

  3. #3


    It's for a website I go to. You can edit 3 lines and make it to login to this, providing you don't have Firefox lol.

  4. #4
    VIP Member
    • 's Gadgets
      • Motherboard:
      • CPU:
      • RAM:
      • 6GB (2+4 GB) DIMM DDR3 1333Mhz
      • Hard Drive:
      • 500GB SATA II 7200RPM
      • Graphics Card:
      • NVIDIA GT335M 1GB
      • Display:
      • Primary 11.6&quot;, Secondary 20&quot;
      • Controller:
      • Logitech RP2
      • Operating System:
      • Genuine Windows(R) 7 Home Premium 64bit
      • ISP:
      • Qubee
      • Download Speed:
      • 128kBps
      • Upload Speed:
      • 128kBps
    Noob™'s Avatar
    Join Date
    Feb 2008
    mirpur-1, dhaka


    hmm maybe used for personal use.. but why not use browser features like remember password/login info etc.

  5. #5


    Yea, that's what I said. You can just use Firefox's built-in login. It's well-coded but it's a hassle when you delete your cache by accident.

Similar Threads

  1. Warcraft III : Frozen Throne
    By GG.AIM in forum Warcraft III
    Replies: 171
    Last Post: September 5th, 2008, 20:00

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
Page generated in 0.17251 seconds with 14 queries.