Holas,
Le di una vista rapida al codigo, y mas o menos seria asi:
Código PHP:
Ver original<?php
{ ?>
<form method="POST">
Top
<input type="text" name="top" />
<br />
Left
<input type="text" name="left" />
<br />
Width
<input type="text" name="width" />
<br />
Height
<input type="text" name="height" />
<br />
<input type="submit"/>
</form>
<?php
}
else
{
{
if(is_numeric($_POST["top"])) $top= $_POST["top"]; else echo 'Top no es numerico';
}
if(isset($_POST["left"])) { if(is_numeric($_POST["left"])) $left= $_POST["left"]; else echo 'Left no es numerico';
}
if(isset($_POST["width"])) {
if(is_numeric($_POST["width"])) $width= $_POST["width"]; else echo 'Width no es numerico';
}
if(isset($_POST["height"])) {
if(is_numeric($_POST["height"])) $height= $_POST["height"]; else echo 'Width no es numerico';
}
{
echo "<div style = 'top:".$top."px; left:".$left."px; height:".$height."px; width:".$width."px; backgroud-color:blue;'>";
echo "</div>";
}
}
}
?>
Saludos
Gildus