Cita:
Iniciado por triibhals
Código PHP:
if(x==1){
echo '<script>NombreiFrame.location.href = "index1.html";</script>';
}
if(x==2){
echo '<script>NombreiFrame.location.href = "index2.html";</script>';
}
if(x==3){
echo '<script>NombreiFrame.location.href = "index3.html";</script>';
}
Basicamente MEzclas PHP con JavaScript espero sea de gran ayuda
Mi Codigo PHP es el siguiente entonces:
<?
switch(true) {
case ($usuario=="Fabian") && ($password=="123"):
'<script>frame.location.href = "clientes1.html";</script>';
break;
case ($usuario=="Estudio") && ($password=="321"):
header ("Location: clientes2.html");
break;
default:
header ("Location: errorcliente.html");
}
?>
Pero no me anda que puede ser?