brown2005 Posted March 12, 2006 Share Posted March 12, 2006 Hi i have the form below:- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="form"> <form name="contact" action="buy_confirm.php" method="post"> <tr><td colspan="2"> </td></tr> <tr><td align="right" width="40%" class="text">Name: </td><td align="left" width="60%"> <input type="text" class="text" name="name" size="35"></td></tr> <tr><td colspan="2"> </td></tr> <tr><td align="right" width="40%" class="text">Email: </td><td align="left" width="60%"> <input type="text" class="text" name="email" size="35"></td></tr> <tr><td colspan="2"> </td></tr> <tr><td align="right" width="40%" class="text">Image: </td><td align="left" width="60%"> <input type="file" class="text" name="image" size="35"></td></tr> <tr><td colspan="2"> </td></tr> <tr><td align="right" width="40%" class="text">Website: </td><td align="left" width="60%"> <input type="text" class="text" name="website" size="35"> ( without the [a href=\"http://www\" target=\"_blank\"]http://www[/a]. )</td></tr> <tr><td colspan="2"> </td></tr> <tr><td align="right" width="40%" class="text">Message Box: </td><td align="left" width="60%"> <input type="text" class="text" name="message" size="35" maxlength="100"> ( 100 characters )</td></tr> <tr><td colspan="2"> </td></tr> <tr><td align="right" width="40%" class="text">Price: </td><td align="left" width="60%"> £100</td></tr> <tr><td colspan="2"> </td></tr> <tr><td align="center" valign="top" colspan="2"><input class="text" type="submit" name="submit" value="Submit"> <input class="text" type="reset" name="reset" value="Reset"></td></tr> <tr><td colspan="2"> </td></tr> </form> </table> what i want to do is once they click submit i want the image to be uploaded onto my website in a folder called images.can any one help please? Quote Link to comment https://forums.phpfreaks.com/topic/4750-uploading-image-to-directory-on-my-website/ Share on other sites More sharing options...
hitman6003 Posted March 12, 2006 Share Posted March 12, 2006 Please refer to the numerous tutorials on this site regarding file uploads, or look in the manual, there is several pages devoted to file uploads.[a href=\"http://www.php.net/manual/en/features.file-upload.php\" target=\"_blank\"]http://www.php.net/manual/en/features.file-upload.php[/a][a href=\"http://www.phpfreaks.com/tutorials/36/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/36/0.php[/a] Quote Link to comment https://forums.phpfreaks.com/topic/4750-uploading-image-to-directory-on-my-website/#findComment-16693 Share on other sites More sharing options...
brown2005 Posted March 12, 2006 Author Share Posted March 12, 2006 Ill take a look.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/4750-uploading-image-to-directory-on-my-website/#findComment-16705 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.