image resizer

Paste Your small code(s) here, ex. small functions

image resizer

Postby PuNkTuReD » Sun Jun 07, 2009 3:28 am

allow users to input a url and have their image resized.
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>
PuNkTuReD
 

Re: image resizer

Postby zNigel- » Sun Jun 07, 2009 11:28 am

Very nice work.. Havent tried it out but i bet i will sometime.



Keep it up m8
zNigel-
 


Return to PHP Snippets

Who is online

Users browsing this forum: No registered users and 0 guests

cron