User Management Code

  Home arrow User Management Code arrow password authentification

password authentification
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1

    Table of Contents:



    simple and easy, and effective way to enable password authentification on your php form scripts.

    By : kittie

    if (!empty($addtolog)) {

    $connection = mysql_pconnect($dbhost,$dbuser,$dbpass);
    $verify = "SELECT * FROM tablename WHERE username='$admin' and password='$password'";
    $verres = mysql_db_query($dbname,$verify,$connection);
    $num = mysql_numrows($verres);
    if ($num != "0") {
    $query = "INSERT INTO adminlog (id,admin,entry,date) VALUES ('0000','".$admin."','".$entry."','".$date."')";
    $result = mysql_db_query($dbname,$query,$connection);
    } else {
    echo "username and password are either incorrect or not in the database";
    <form method="post">
    name: <input type="text" name="admin"><br>
    passwd <input type="password" name="password"><br>
    entry: <textarea cols="30" rows="4" wrap="virtual" name="entry"></textarea>
    <br><input type="submit" name="addtolog">
    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More User Management Code Articles
    More By Codewalkers

    blog comments powered by Disqus


    - XCRYPT v1.0b
    - DB_eSession class stores sessions in a MySQL...
    - Ever Changing Dynamic Passcode Code
    - phpAutoMembersArea - create own members area
    - Azura Signup 2.5
    - Azura Signup 2.0
    - Azura Signup
    - Flexcustomer
    - PHP Quicksite 2.0
    - PHP Quicksite 1.0
    - random string generator (key generator)
    - Example Login system
    - Simple and Easy Security
    - Basic Security
    - UMA - User Management and Authentication

    Developer Shed Affiliates


    © 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap