Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/02/2011, 12:31
jmbarile07
 
Fecha de Ingreso: febrero-2011
Ubicación: San Luis - Argentina
Mensajes: 9
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Abrir una HTML en un IFRAME desde PHP

Cita:
Iniciado por triibhals Ver Mensaje
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?