Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/01/2005, 08:42
Avatar de baklao
baklao
 
Fecha de Ingreso: noviembre-2004
Ubicación: Santa Ana - Isla de Margarita
Mensajes: 482
Antigüedad: 19 años, 5 meses
Puntos: 0
Hola quet tal prueba esto asi:

pagina.htm
Código HTML:
<html>
<head>
<title>Introduzca nombre de usuario y password</title>
<script language="Javascript">

<!--
function init()
{
document.logon.username.focus();
}
//-->
</script>
</head>

<body onload="init();">
<br>
<br>
<br>

<form method="post" name="logon" action="verifica.php">
<div align="center">
<center>
<table class="special-box" border="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="4" bgcolor="#FFCC33">
<tbody>
<tr>
<td> Nombre Cuenta:&nbsp;</td>
<td><input type="text" size="32" name="username"
maxlength="128"></td>
<td>*</td>
</tr>
<tr>
<td>Password:*</td>
<td><input type="password" size="32" name="password"
maxlength="128"></td>
<td>
<input type="submit" value="Login" name="do.login">

</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</center>
</div>
</form>
</BODY>
</HTML> 
Ahora creamos una pagina llamada verifica.php
verifica.php
Código PHP:
<?php
if ($_POST['password']!="con"){
header ("Location: Web.php"); 
}
 else
      {
       
header ("Location: pagina.htm");        
      }
?>
Suerte y Salu2.

Bye
__________________
Atte. Mohamed :aplauso: