How to Make a Login Web Page

How to Make a Login Web Page thumbnail
Login pages can be scripted in less than 20 minutes.

Login pages are an essential component of many dynamic web applications. They lend an air of authority and security to any website, and consumers have come to expect a login page out of professional grade web applications. Learning to write them is a valuable and useful skill for both personal projects and for commercial purposes. Additionally, it's relatively easy to code a login page. Although web development is an exciting and challenging field, a login page can be scripted in less than 20 minutes.

Things You'll Need

  • Knowledge of PHP (Personal HomePage HyperText Processor)
Show More

Instructions

    • 1

      Write the XHTML, or eXtensible HyperText Markup Language, for the login page. Here is an example of how it should appear:

      "

      <form>

      <input type="text" name="uname" />

      <input type="text" name="pwd" />

      </form>

      "

      You'll have to make some alterations based on your application.

    • 2

      Write a PHP script that checks the form data against a database or text file. An infinite number of methods are available to complete this step. Find the method that best suits you.

    • 3

      Set a cookie to keep track of logged in users. See the example below.

      "

      <?php

      $_COOKIE['name']="value";

      ?>

      "

      Rename "name" and "value" to suit your needs.

Related Searches:

References

  • Photo Credit login image by Edvin selimovic from Fotolia.com

Comments

You May Also Like

Related Ads

Featured