PHP Classes
elePHPant
Icontem

File: functions/dojo-form.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hassan Ishfaq  >  Abdohoo Secure Login  >  functions/dojo-form.php  >  Download  
File: functions/dojo-form.php
Role: Auxiliary script
Content type: text/plain
Description: Sample Form to Display for Login
Class: Abdohoo Secure Login
Authenticate users with records in a MySQL table
Author: By
Last change:
Date: 6 years ago
Size: 1,669 bytes
 

Contents

Class file image Download
<?php
//sEcure Login ---- library by abdohoo.com
//file ---- login form
function dojo_form($error_text='',$errordetails="home") { ?>

<?php
//include"head.php"; head section can contain your head file of ur template ?>
<style type="text/css">
.stformone {
    font-family: Verdana;
    font-size: 12px;
}
.stformtwo {
    font-family: Verdana;
    font-size: 12px;
    text-align: center;
}
.stformonem {
    background-color: #F7F7DE;
}
.stformtwom {
    font-family: Verdana;
    font-size: 12px;
    text-align: center;
    color: #FF0000;
}
</style>
<center>
<div id='center'>
<form method="post">
<h3> Please Login To View This Page </h3>

<table style="width: 40%; text-alig:center;" cellpadding="2" class="stformonem">
    <tr>
        <td class="stformtwom" colspan="2"><strong></strong></td>
    </tr>
    <tr>
        <td class="stformone"><strong>Name</strong></td>
        <td>

            <strong>

            <input name="userName" type="text" class="stformone" /></strong>
        </td>
    </tr>
    <tr>
        <td class="stformone" style="width: 96px"><strong>Password</strong></td>
        <td style="width: 513px"><strong>
        <input name="password" type="password" class="stformone" /></strong></td>
    </tr>
    <tr>
        <td class="stformtwom" colspan="2"><strong><?php echo $error_text[0]; ?></strong></td>
    </tr>
    <tr>
        <td class="stformone" style="width: 96px">&nbsp;</td>
        <td style="width: 513px"><strong>
        <input name="Submit1" type="submit" value="submit" /></strong></td>
    </tr>
</table>
        <input name="do_login" type="hidden" value="1" />
</form>

  </div>
  </center>
<?php //include"footer.php"; -- footer section can contain your head file of ur template ?>
<?php
} ?>