Jump to content

HOW do I display a local image?


dkperez

Recommended Posts

I want to display a local image from a browser.  Without wasting the time on a urination festival about "why do I want to display a local file" or "why not download it from the server", trust me that I want to display a local image.....

 

php sets everything up, so I have the full path and all for the image.  In the form I have:

 

<a><img src="c:/xampp/htdocs/images/xxx.jpg" alt="NO IMAGE AVAILABLE"></a>

 

and all I get is "NO IMAGE AVAILABLE".  I rummaged around, and found that wiki insists that the correct syntax is:

 

<a><img src="file:///c:/xampp/htdocs/images/xxx.jpg" alt="NO IMAGE AVAILABLE"></a>

 

but I get the same "NO IMAGE AVAILABLE"......

 

So, from a plain old, regular html file that has a form in it, HOW do I display this image?

 

Link to comment
Share on other sites

I've already done all the stuff in the replies......  I don't get an image.....

 

The full-sized images to be displayed are located in a folder on the LOCAL system.  The browser is running from the web server, and all the necessary full path and file information is available there....  BUT,  to simplify things, here's a simplified version of my html that (AS NEAR AS I CAN TELL) should display an image.....  It DOESN'T.......

 

I need someone to tell me what's wrong with the syntax:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

 

  <head>

  </head>

<body>

    <div>

      <form>   

<a><img src="file:///d:/dew.jpg" alt="NO IMAGE AVAILABLE"></a>

      </form>

    </div>

  </body>

</html>

 

I've even attached a much smaller, low quality version of the dew.jpg file.......

 

What have I got wrong in here?

 

[attachment deleted by admin]

Link to comment
Share on other sites

OK, I"ve either made this EASIER or a LOT HARDER......  I found out last night that the facility where the meeting is held, and where the slideshow needs to be shown HAS NO WI-FI........  So, there's no Internet connection that'll do me any good.......

 

SO, I"m going to have to rethink this whole mess...  Probably just run the browser locally, and do something with a php slideshow..... 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.