example:
http://www.sassirc.com/image_resizeV2.php
- Code: Select all
<?
if (isset($_POST[url])) {
$img=$_POST[url];
$width=$_POST[width];
$height=$_POST[height];
echo "<center>Your modified picture:</center><br />";
echo "<center><img src='$img' width='$width' height='$height'></center><br />";
echo "<center>Your original picture:</center><br />";
echo "<center><img src='$img'></center><br />";
}
?>
<center><form method="post" name="picture" align="center">
<table width=100% border=0>
<td width=50%>
<p align=center><font color=000000>URL to picture:<br />
<input type="text" name="url"></td></p>
</table>
<table width=60% border=0>
<td width=50%>
<p align=center><font color=000000>Width:<br />
<input type="text" name="width"></td></p>
<td width=50%>
<p align=center><font color=000000>Height:<br />
<input type="text" name="height"></td></p>
</table>
<table width=100% border=0>
<td width=50%>
<p align=center><input value="Submit" type="submit"></p></form></center></td>
</table>