Jump to content

how do i display an attachment from a post?


dbradbury

Recommended Posts

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

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.