Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question, display image using perl/cgi 4

Status
Not open for further replies.

frankli

Technical User
Apr 6, 2005
44
CA
Hi all,

I have a problem when printing a simple html over cgi

in html i can get the image "test_logo.gif" displayed on the screen,
<html>
<body>
<a href=" src="test_logo.gif" alt="Test Logo"></a>
</body>
</html>

however in perl/cgi, the image can not be displayed,
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print <<EOF;
<html>
<body>
<a href=" src="test_logo.gif" alt="Test Logo"></a>
</body>
</html>
EOF

the path of the image is current path.

please point out what I did wrong. Thanks.

Regards!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top