Next time please attach the actual page so I can open it in dreamweaver.
It looks like you are setting the width and height with:
<?php echo((isset($_POST["width"]))?$_POST["width"]:""); ?>
<?php echo((isset($_POST["height"]))?$_POST["height"]:""); ?>
and you should be using:
<?php echo($WA_DFP_UploadStatus["WA_UploadResult1"]["imageWidth"]); ?>
<?php echo($WA_DFP_UploadStatus["WA_UploadResult1"]["imageHeight"]); ?>