dbradbury Posted December 23, 2009 Share Posted December 23, 2009 ive tried many different ways to this but i never get the image... dont suppose you could give me some examples of what the code may look like as i have done it, and posted it, then they say the image doesnt exist, but it can be seen on the forum perfectly :s if it comes down to it, ill post what code i have but i wanted to see other examples before putting mine up.. thanks Link to comment https://forums.phpfreaks.com/topic/186162-how-do-i-display-an-attachment-from-a-post/ Share on other sites More sharing options...
Zyx Posted December 23, 2009 Share Posted December 23, 2009 So what do you actually try to do? Display an image uploaded to a server via a form? You must add enctype="multipart/form-data" attribute to the <form> tag, and then in the script copy the uploaded file with move_uploaded_file() to the location accessible for the browser. Link to comment https://forums.phpfreaks.com/topic/186162-how-do-i-display-an-attachment-from-a-post/#findComment-983134 Share on other sites More sharing options...
dbradbury Posted December 23, 2009 Author Share Posted December 23, 2009 no, an image should just load when clicking on a name.. im doing a site for a band, and i want the image to show when you click their name... but im using the forum to store everything for the site. i have a forum for the player (meet the players), then in that there will be posts about the player, then i will attach an image to that post of them. thats the image i want to display Link to comment https://forums.phpfreaks.com/topic/186162-how-do-i-display-an-attachment-from-a-post/#findComment-983137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.