Try using either Mozilla or Firefox with the Live HTTP Headers plugin to work out what your browser is asking for. When you load the page, the HTTP requests for all resources on the page will be recorded by the Live Headers plugin.

In general you should:

  1. Check that your script is creating the correct HTML for the img tag.
  2. Take the img source and us it with the page URL to investigate whether there is a problem server side.
  3. Use Live Headers to investigate the transaction looking for things that are not related to the HTML such as cookies etc.

My bet is that the source of your image tag refers to a resource that isn't there. E.g. your script is running as http://localhost/cgi-bin/myscript.cgi and the browser is creating the URL http://localhost/cgi-bin/htdocs/test/DailyReport.jpg for your image. I reckon that this isn't what you want.


In reply to Re: <img> is not displaying images by inman
in thread <img> is not displaying images by pdl_babu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.