Jump to content

uploaded image to show on page


zeusthegreat

Recommended Posts

hello i am racking my tiny brain to once i have uploaded an image to a particular page to get the image to appear on the page that it has been uploaded to .

 

am i best to upload the image and can i then use include to make the image show on the page

 

or do i have to create a div or a html table and upload the image in there

 

is there a particular function that i am missing

 

 

or do i have to create an image variable and then go from there

 

 

all the training on this subject are really intimerdating i just want a bit of help.... ;)

 

 

do i upload to the page and what do i use i guess it is not echo possibly print_r($_FILES);

 

headache headache

 

 

 

thanks for any help

Link to comment
Share on other sites

so if i wanted to place an image on in a certain part of a page i would just either use pixels to determine this or place inside a div, then how would i get the next image to show underneath or to the side pixels again or is there some other command is what i am asking?

 

 

 

thanks for the look i am trying to understand ecerything that i am doing and then i always learn well!

 

 

:rolleyes::D:D:D:D:D:D:D

Link to comment
Share on other sites

You will have to style the img html inside the PHP echo or print.

 

Put an id in the stylesheet for each image:-

#image1 { display: block; width: ??px; height: ??px; }
#image2 { display: block; width: ??px; height: ??px; }

and edit the PHP echo or print:-

print "<img id="image1" src='$uploadPath/my57chevy.gif' alt='My 57 Chevy' /> <img id="image2" src='$uploadPath/my57chevy.gif' alt='My 57 Chevy' />  \n"; 

which should place one image above the other as block elements are usually one above the other. If you want the images side by side, add float: left; to both styles. However, you may need additional styles to position the images more accurately, like margin or padding but we don't know how they are to fit in your page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...