![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/04/2007, 22:30
|
| | Fecha de Ingreso: diciembre-2006
Mensajes: 28
Antigüedad: 18 años, 1 mes Puntos: 0 | |
cambiar atributos de un tag html Hola, tengo que cambiar los atributos de un tag html, mediante una variable php.
Por ejemplo:(el atributo height del tag <iframe>).
<html>...
<body>...
<iframe name="2" width="702" frameborder="0" id="2" height="300" </iframe>
En definitiva sería:
*-designar una variable
*-por metodo GET cambiar el valor
*-y que el atributo "height" tome el valor de esta variable.
puede ser algo así? <iframe>
<?
$altura=$_GET['altura'];
print ("<height='$altura'>");
?>
</iframe>
Alguien me podría ayudar?.
Gracias |