Forum Moderators: coopster & phranque

Message Too Old, No Replies

Getting Images to Display

         

4ibiz

1:11 am on Aug 21, 2003 (gmt 0)

10+ Year Member



Newbie question.
I am trying to get some header images displayed but for some reason they will not come up.
I have tried various paths in the .pl file that is responsible for displaying the header across the other cgi files but none seem to work eg. <IMG SRC=http://www.mydomain.com/images/picture.gif
All I get is the text that I put in the "ALT" tag but no image.
What am I doing wrong?

Thanks
Terry

moltar

1:19 am on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the exact code that you use?

My feeling is that it's because of the quotes. Try escaping them link this: \" <- put a slash in front of it.

4ibiz

2:18 am on Aug 21, 2003 (gmt 0)

10+ Year Member



This is one example that I have tried but nothing seems to work

<td width="172"><IMG SRC=http://www.start-page-traffic.com/start-page-exchange.gif WIDTH=172 HEIGHT=107 ALT="Start Page Traffic Exchange"></td>

moltar

4:07 am on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do not post real page URLs. It's against the forum TOS.

Give me the whole code. How do you output it? print function? or somehow else?

If you want to use print, try this:

print qq(<td width="172"><IMG SRC=http://www.widgets.com/start-page-exchange.gif WIDTH=172 HEIGHT=107 ALT="Start Page Traffic Exchange"></td>);

4ibiz

1:33 pm on Aug 21, 2003 (gmt 0)

10+ Year Member



Sorry I am kinda lost , I'm not too sure what you mean

ShawnR

1:56 pm on Aug 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi 4ibiz

Moltar means 2 things:

  1. Don't reveal your real URL in your posts. Substitute it with a generic name. e.g. [my_domain.com...]
  2. We need to figure out if the problem is related to perl and how you have coded your print statement, vs the path of the image being correct relative. If it is related to your perl coding, one possible problem is how you are quoting, so Moltar is suggesting using the qq(my string) format instead of the "my string" format. But really, to be sure you should post the perl code snippet you are using to print the image tag.

Shawn