powered by:
<?php//variables$maxW = 90;$maxH = 100;//error_reporting(0);if ($_POST['form_check']) { $image = $_POST[imageURL]; list($width, $height) = getimagesize($image); if (($width/$height > $maxW/$maxH) || ($width > $maxW) || ($height > $maxH)) { echo "The image dimensions should not exceed 90x100"; } else { echo "Thanks for your update"; }} else {print <<<_HTML_<form method="post" onSubmit="return validate_form(this);" name="ImageTest" action="$_SERVER[PHP_SELF]"><input type="hidden" name="form_check" value="true"><input class="imageURL" type="text" id="imageURL" name="imageURL" width="15" size="40" /><input type="submit" value="Submit" class="submitButton" /></form>_HTML_;}?>