ok mira es que tengo esto
Código PHP:
Ver original<?php
// -- check for login parameters
if( isset($_REQUEST["username"]) and
isset($_REQUEST["password"]) ) {
$_REQUEST["username"] = entry_filter($_REQUEST["username"]);
$_REQUEST["password"] = entry_filter($_REQUEST["password"]);
if( $_REQUEST["username"] == "" or $_REQUEST["password"] == "" )
{
$status_message = "LOGIN_NO_INFO";
}
else
{
if( query_scalar("select count(*) from users where username = '".
$_REQUEST["username"]."' and password = '".
$_REQUEST["password"]."' and status = 'A'") > 0 )
{
$status_message = "";
$_SESSION["username"] = $_REQUEST["username"];
$G_username = $_SESSION["username"];
$G_username_name = $_SESSION["username_name"];
update_login_info();
send_date();
if( $_SESSION["type"] == "admin" )
header("Location: admin.php"); else if( $_SESSION["type"] == "manager" )
header("Location: manager.php"); else
}
else $status_message = "LOGIN_INVALID";
}
}
else $status_message = "";
?>
<table style="margin-left: 20px; margin-top: 10px;" border="0">
<tr>
<td></td>
<td height="15">Login Area.</td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td class="fieldTitle">Username:</td>
<td><input type="text" name="username" size="25"></td>
</tr>
<tr>
<td class="fieldTitle">Password:</td>
<td><input type="password" name="password" size="25"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="login" value="Login"></td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td colspan="2" class="errorMessage"><?php if( $status_message <> "" ) echo($status_message."."); ?></td>
</tr>
<?php if( $status_message <> "" ) { ?>
<tr>
<td colspan="2" height="15"></td>
</tr>
<?php } ?>
</table>
y quiero hacer que ante de ejecutar para entrar genere un loading o algo que indique estamos redirigindo espero un momento