Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

358
Vistas
Can you reload an iframe using PHP when an IF condition is met?

So I have two pages, my PHP script and then an HTML page with two iframes in it.

> <html>
> 
> <iframe name=1></iframe> <iframe name=2></iframe>
> 
> </html>

Iframe2 is currently housing my PHP script. My PHP script is something like below:

<?php

if this {
do this
}

?>

What I am trying to find out is if it's possible for my IF condition within my PHP script can reload iFrame1? I've played around with different methods and onClick obviously works to reload the frame, but I need the frame to reload based on the IF condition being met and I can't really figure that out. TIA!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

PHP is not able to change/reload a frame on client browser. PHP is a server-site language. You have to use javascript here like you found out: "onClick" (javascript) works.

If you like to, you can use javascript combined with ajax to ask "PHP" on the server if javascript should reload the frame.

But PHP can NOT reload anything on the browser after document is loaded.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda