
19/10/2004, 02:51
|
| | Fecha de Ingreso: diciembre-2003 Ubicación: Málaga
Mensajes: 495
Antigüedad: 21 años, 3 meses Puntos: 0 | |
sigo escribiendo lo mismo pero me sigue dando el mismo error, he probado con ' y ", y sigue sin salir
este es el codigo del formulario q precede a lo k puesto anteriormente:
<html>
<head>
<title></title>
</head>
<body>
<form action="hola.php" method="post" name="formu" id="formu" whidth="100% height=100%">
<table width="305" height="70" border="0" cellpadding="0" cellspacing="0" STYLE="TOP:1px;Left:1px;">
<tr>
<td><strong><font color="#FF9900" size="2" face="Arial, Helvetica, sans-serif">Usuario</font></strong></td>
<td> <div align="left"> <input name="usuario" type="text" id="usuario" size="30"></div></td>
</tr>
<tr>
<td><strong><font color="#FF9900" size="2" face="Arial, Helvetica, sans-serif">Password</font></strong></td>
<td> <div align="left"> <input name="pass" type="text" id="pass" size="30"></div></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Enviar"></td>
</tr>
</table>
</form>
</body>
</html>
y esto es como me has explicado:
<?
$usuar="hola";
$passw="adios";
$usu1=$_POST[usuario];
$pass1=$_POST[pass];
if (($usuar!=$usu1) && ($passw!=$pass1))
{
echo "Bienvenido al sistema";
header("location:admin.php");
}
else
{
echo "Usuario o password incorrecto";
}
?> |