
29/08/2013, 05:25
|
|
Respuesta: Asunto complejo entre PHP, iframes y javascript Cita:
Iniciado por danneg En ésta parte
Está ypasa lo que te decía; primero que nada quita las etiquetas php y la función echo, depués, te recomiendo usar EOFILE para imprimir un contenido multi-línea, o ya en su defecto, hacer uso correcto de las etiquetas php
Ejemplo 1
Código PHP:
Ver original{ $mythml = <<<EOFILE <html> <head> <meta charset="utf-8"> </head> <body> <div> <img src="$target" /> </div> </body> </html> EOFILE; echo $myhtml; }
Ejemplo 2
Código PHP:
Ver original<?php ?> <html> <head> <meta charset="utf-8"> </head> <body> <div> <img src="<?php echo $target;?>"/> </div> </body> </html> <?php endif; ?>
Ha funcionado, muchas gracias, por tu tiempo y ayuda;     Hasta pronto    |