Hasta hace poco hacia los arreglos de los archivos a huevo y luego los probaba en el servidor, pero ahora me descargue apache, mysql y php y me funciona todo bien el localhost.
El caso es que copie un ejemplo de autenticacion de usuario y en el servidor sale super bien, cuando ingresas el usuario erroneo se pone un texto en color rojo, pero en localhost no sale bien ¿porque?
os pongo el codigo y despues las 3 imagenes, la del servidor funcionando BIEN la del servidor funcionando bien con el efecto que hace al meter el usuario incorrecto y la que sale mal en localhost.¿porque sale mal en localhost?
CODIGO:
Código PHP:
<html>
<head>
<title>IDENTIFICARSE PARA RESERVAR MESA</title>
</head>
<body onload="document.getElementById('usuario').focus();">
<STYLE type="text/css">
h1 { text-align: center;color: navy;}
table { text-align: center; font-weight: bold;}
td { text-align: center; font-weight: bold;}
fieldset { border: 3px solid navy;}
legend{ font-weight: bold; color: navy;}
</STYLE>
<h1>IDENTIFICACION</h1>
<form action="Entrar.php" method="POST">
<fieldset>
<legend>ACCESO A RESERVAR MESA</legend>
<table align="center" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2"
<?if ($_GET["errorusuario"]=="si"){?>
bgcolor=red><span style="color:ffffff"><b>Datos incorrectos</b></span>
<?}else{?>
bgcolor=#cccccc>Introduce tu clave de acceso
<?}?></td>
</tr>
<tr>
<td>SOCIO:</td>
<td><input type="Text" name="usuario" id="ususario" size="35" maxlength="35"></td>
</tr>
<tr>
<td>CLAVE:</td>
<td><input type="password" name="contrasena" id="contrasena" size="8" maxlength="6"></td>
</tr>
<tr>
<td colspan="2"><input type="Submit" value="ENTRAR"></td>
</tr>
</table>
</fieldset>
</form>
<center>
<img src="upload/Mesa.jpg">
</center>
</body>
</html>
imagen FUNCIONANDO EN EL SERVIDOR CORRECTAMENTE:
imagen FUNCIONANDO EN EL SERVIDOR CORRECTAMENTE CON EL EFECTO USUARIO ERRONEO:
imagen FUNCIONANDO MAL EN LOCALHOST:
SALU2