PHP
  Home arrow PHP arrow Page 2 - User Authentication for a Project Management Application
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

User Authentication for a Project Management Application
By: David Web
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2008-08-18


    Table of Contents:
  • User Authentication for a Project Management Application
  • User Information
  • The Script
  • Checking the User and Email

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    User Authentication for a Project Management Application - User Information
    ( Page 2 of 4 )

    The error message is only displayed if it is not empty; otherwise, the entire row of the table is hidden from the user. The remainder of the code collects further information about the user, such as the email address, username, password and other required information.

    <tr>

    <td width="122"><div align="left">Name:</div></td>

    <td width="525"><input name="fname" type="text" class="input40" size="40"></td>

    </tr>

    <tr>

    <td width="122"><div align="left">Surname:</div></td>

    <td width="525" class="login"><input name="sname" type="text" size="40"></td>

    </tr>

    <tr>

    <td width="122"><div align="left">Username:</div></td>

    <td width="525" class="login"><input name="uname" type="text" size="40">

    <span class="tooltip">username must be in format: <strong>name.surname</strong></span></td>

    </tr>

    <tr>

    <td width="122"><div align="left">Password:</div></td>

    <td width="525" class="login"><input name="upass" type="text" size="40" value="<?php echo $rndpass; ?>"></td>

    </tr>

    <tr>

    <td><div align="left">Email:</div></td>

    <td class="login"><input name="email" type="text" size="40"></td>

    </tr>

    <tr>

    <td><div align="left">Access Level</div></td>

    <td class="login"><label>

    <select name="select">

    <option>admin</option>

    <option>normal</option>

    </select>

    </label></td>

    </tr>

    Here is the code for the row that collects the password information:

    <tr>

    <td width="122"><div align="left">Password:</div></td>

    <td width="525" class="login"><input name="upass" type="text" size="40" value="<?php echo $rndpass; ?>"></td>

    It can be hidden from the administrator and sent directly to the newly created user. This way, only the user will know what his or her password is. I’ve left this option open for you to decide what to do based on your situation.

    The user can access the password recovery script by clicking on the “forgot your password?” link on the login page. See the screen below:


    Fig. 1 login page with the “forgotten password?” link.


    Fig. 2 password recovery page

    The password script handles the password recovery process, in case the user forgets his or her password. It will ask the user for the username and an email address. To prevent fraud, the script will check to see if the username and email address exists in the database and that they both belong to the same person. Only after it is satisfied that it belongs to the same person will it then email the password to the given email address.

    So let's look at the code that does the work. Click on the link below to see it. 



     
     
    >>> More PHP Articles          >>> More By David Web
     

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek