pleek Posted May 9, 2008 Share Posted May 9, 2008 ok so i have this image upload script for my website. and all it does is upload the image and display the file path to it. I want to include a drop down box in the upload form to select a image size to resize it to. I have looked all over google and i can't find anything close to what i want. Does anybody know how to do this? (the div my upload form is in) <div class="wrapper"> <DIV ALIGN="center"><h1>Pleek'S Photo Upload</h1></DIV> <p>Browse file to upload</p> <form method="post" enctype="multipart/form-data" action="<?=$im->path?>"> <input type="file" name="__upload" size="72" /> <input type="submit" value="Upload" /> </form> <p><?=$im->allowTypes();?></p> <? if ($im->_im_status == true) { echo '<h2>Upload Successful!</h2> <IMG SRC="'.$im->imgurl.'"> <p class="codes"><label for="codebb">Embed on bulletin boards:</label><br /> <input type="text" size="40" value="[img='.$im->imgurl.']" onclick="javascript:this.focus();this.select();" readonly="true" /><br /> <label for="codedirect">Direct link:</label><br /> <input type="text" size="40" value="'.$im->imgurl.'" onclick="javascript:this.focus();this.select();" readonly="true" /></p>'; } elseif (!empty($im->errorStr)) { echo '<div class="errors">'.$im->errorStr.'</div>'; } else { echo ' '; } ?> </div> Quote Link to comment https://forums.phpfreaks.com/topic/104941-image-resize-help/ Share on other sites More sharing options...
pleek Posted May 9, 2008 Author Share Posted May 9, 2008 ok, i found this script (\/ below \/) and it has fields for the user to fill in how big he wants it. How would i modify that to be a drop down box with set sizes? [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/104941-image-resize-help/#findComment-537194 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.