Mas o menos asi te refieres?:
Código PHP:
Ver original<form name="form1" method="POST">
Top
<input type="text" name="top" value="
<? if(isset($_POST['top'])) echo $_POST['top']; ?>" />
<br />
Left
<input type="text" name="left" value="
<? if(isset($_POST['left'])) echo $_POST['left']; ?>" />
<br />
Width
<input type="text" name="width" value="
<? if(isset($_POST['width'])) echo $_POST['width']; ?>" />
<br />
Height
<input type="text" name="height" value="
<? if(isset($_POST['height'])) echo $_POST['height']; ?>" />
<br />
<input type="submit"/>
</form>
<br /><br />
<?php
if(isset($_POST["top"]) && isset($_POST["left"]) && isset($_POST["width"]) && isset($_POST["height"])) { $top=trim($_POST["top"]); $left= trim($_POST["left"]); $width= trim($_POST["width"]); $height= trim($_POST["height"]);
echo "<div style = 'top:".$top."px; left:".$left."px; height:".$height."px; width:".$width."px; background-color:blue;'>";
echo "</div>";
}
?>
Saludos
Gildus