Contoh Form Login Di Php
Contoh Form Login di PHP
<link href="css/styleForm.css" rel="stylesheet" type="text/css" />
<?php
/*
* Copyright (C) 2013 EQuine. All rights reserved.
* File Name : login.php
* PHP version : 5
* History :
* - EQuine (2013-02-14): version 1.1.2 completed.
*/
//require_once "js/checkLoginAndLossPass.js";
$error = null;
echo $error;
?>
<br />
<div align="center">
<form id="loginForm" action="login_check.php" method="post" name="formLogin" target="_self">
<fieldset id="body">
<fieldset>
<label for="user ID">Username</label>
<input name="Username" type="text" id="username"
value="<?php echo isset($_REQUEST['Username']) ? $_REQUEST['Username'] : '';?>" size="30"
maxlength="50" onkeyup="javascript:this.value=this.value.toLowerCase();" placeholder="Username" required>
</fieldset>
<fieldset>
<label for="password">Password</label>
<input name="Password" type="password" id="password" size="30" maxlength="35" placeholder="Password" required>
</fieldset>
<?php
if($error)
{
?>
<fieldset>
<label for="captcha">
<div align="left">
<img src="captcha/captcha.php?date=<?php echo date('YmdHis');?>" alt=" Contoh Form Login di PHP"/>
Input Security Code
<input name="pin" type="text"/ id="captcha">
</div>
</label>
</fieldset>
<?php
}
?>
<input name="Submit" type="submit" value="Log In" id="login">
</fieldset>
<span><a href="?page=lost_pass">Forgot your password ?</a></span>
</form>
</div>
<br />
<link href="css/styleForm.css" rel="stylesheet" type="text/css" />
<?php
/*
* Copyright (C) 2013 EQuine. All rights reserved.
* File Name : login.php
* PHP version : 5
* History :
* - EQuine (2013-02-14): version 1.1.2 completed.
*/
//require_once "js/checkLoginAndLossPass.js";
$error = null;
echo $error;
?>
<br />
<div align="center">
<form id="loginForm" action="login_check.php" method="post" name="formLogin" target="_self">
<fieldset id="body">
<fieldset>
<label for="user ID">Username</label>
<input name="Username" type="text" id="username"
value="<?php echo isset($_REQUEST['Username']) ? $_REQUEST['Username'] : '';?>" size="30"
maxlength="50" onkeyup="javascript:this.value=this.value.toLowerCase();" placeholder="Username" required>
</fieldset>
<fieldset>
<label for="password">Password</label>
<input name="Password" type="password" id="password" size="30" maxlength="35" placeholder="Password" required>
</fieldset>
<?php
if($error)
{
?>
<fieldset>
<label for="captcha">
<div align="left">
<img src="captcha/captcha.php?date=<?php echo date('YmdHis');?>" alt=" Contoh Form Login di PHP"/>
Input Security Code
<input name="pin" type="text"/ id="captcha">
</div>
</label>
</fieldset>
<?php
}
?>
<input name="Submit" type="submit" value="Log In" id="login">
</fieldset>
<span><a href="?page=lost_pass">Forgot your password ?</a></span>
</form>
</div>
<br />