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.

Code: Select all
if (isset($_POST[url])) {
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 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 width=100% border=0>
<td width=50%>
<p align=center><input value="Submit" type="submit"></p></form></center></td>

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

Return to PHP Snippets

Who is online

Users browsing this forum: No registered users and 0 guests