newbie perl - html question

B

bbxrider

am trying to output the first part of a web page, see
www.job1data.com/phsheader.htm
i've tried putting the exact html code for the above in my perl file like
this

print "Content-type:text/html\n\n";
print <<EndHdr;

html code here, (not enclosed in quotes)

EndHdr

the page kinda starts to come up but the graphics are x'd out and it seems
to basically grind to a halt
perl is basically working on the site see, www.job1data.com/perl1.plx
i haven't seen anywhere where for some reason the html code is 'limited'
when being generated from a perl script but obviously am running into some
problem here
 
T

tom

bbxrider said:
am trying to output the first part of a web page, see
www.job1data.com/phsheader.htm
i've tried putting the exact html code for the above in my perl file like
this

print "Content-type:text/html\n\n";
print <<EndHdr;

html code here, (not enclosed in quotes)

EndHdr

the page kinda starts to come up but the graphics are x'd out and it seems

Your perl script and images files might not in the same directory. In this
case, you need to specify the location of your image files with an absolute
path. For example: <img src="http://job1data.com/images/phslogo.bmp"
 
G

Gregory Toomey

It was a dark and stormy night, and tom managed to scribble:
Your perl script and images files might not in the same directory. In this
case, you need to specify the location of your image files with an
absolute path. For example: <img
src="http://job1data.com/images/phslogo.bmp"

Or better still
<img src="/images/phslogo.bmp"> or
<img src="../images/phslogo.bmp">

gtoomey
 
T

tom

Gregory said:
It was a dark and stormy night, and tom managed to scribble:


Or better still
<img src="/images/phslogo.bmp"> or
<img src="../images/phslogo.bmp">

gtoomey

Yes indeed your is better. However, the script used must be in the same server
and the images directory is the one above; otherwise, the full URL is needed.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top