Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/01/2008, 18:20
Avatar de hades87
hades87
 
Fecha de Ingreso: diciembre-2007
Ubicación: Barcelona - España
Mensajes: 3.194
Antigüedad: 16 años, 4 meses
Puntos: 68
Pregunta pagina ingreso usuarios error

andaba mirando un totorial de la pagina de www.desarrolloweb.com y al copiar el codigo del formulario paara ingresar usuarios no m sale bien, es apra cuando alguien emte datos erroenos le salga k son erroenos.

Código HTML:
<form action="control.php" method="POST">
<table align="center" width="225" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2" align="center"
<?
if ($_GET["errorusuario"]=="si")
{
?>
bgcolor="#cccccc"><span style="color:ffffff"><b>Datos incorrectos</b></span>
<?
}
else
{
?>
bgcolor="#cccccc">Introduce tu clave de acceso
<?
}
?>
</td>
</tr>
<tr>
<td align="right">USER:</td>
<td><input type="Text" name="usuario" size="8" maxlength="50"></td>
</tr>
<tr>
<td align="right">PASSWD:</td>
<td><input type="password" name="contrasena" size="8" maxlength="50"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="Submit" value="ENTRAR"></td>
</tr>
</table>
</form>