Hi,
I want to make a piece of code where I have a form with the fields width and height. The forced dimensions of the image are W: 120 and H: 90. I want to make two boxes with the names width and height, and when somebody enters nwe numbers into the fields and clicks resize, the image resizes accordingly.
I've got the HTML form:
<img id="pic" src="images/click.jpg" width="120" height="90">
<br/>
<form action="form.php" method="post">
<caption>Enter new numbers to resize the image</caption><br/>
Width: <input name ="width" type="text" value="120">
<br/>
Height: <input name ="height" type="text" value="90">
<br />
<input type="submit" value="RESIZE">
</form>
I think what I have to do is create variables $height and $width, and then update them with values from $POST['height'] and $POST['width']
- I just dont know how to make a function that sets the new height and width values to that of what the user has put in
ANY help would be GREATLY appreciated!!! thanks
-AMMAR