PHP Classes

File: login.php

Recommend this page to a friend!
  Classes of Andrei  >  SMK User Authentication  >  login.php  >  Download  
File: login.php
Role: Example script
Content type: text/plain
Description: Example login script.
Class: SMK User Authentication
Authenticate users with MySQL database records
Author: By
Last change:
Date: 16 years ago
Size: 1,718 bytes


Class file image Download

    if (
$auth=new UserAuth($database);
        if (
header('location: index.php');
$message='Login incorrect';

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test Login</title>
<body leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <td colspan=2> Welcome to my example login!</td>
    <td width="180" align="left" valign="top" rowspan=2>
    <table class="menuleft" height="400" width="100%" border="0" cellspacing="0" cellpadding="0">
    <td width="607" valign="top">
        <?php if ($message!=''){ ?>
<table cellspacing="0" cellpadding="0">
            <td width="100%" height="25" colspan="2">
        </table >
        <?php } ?>
<form action="login.php" method="post" >
        Username:<input type="text" name="username" value=""><br>
        Password:<input type="password" name="password" value=""><br>
        <input type="submit" name="sumbit" value="Login">
    <td>Please Login</td>

For more information send a message to info at phpclasses dot org.