I'm trying to do a very simple thing; print an image to a page.
Unfortunately I've decided I'm going to do it using CGI.pm in OO mode,
so I tried
print $cgi->img(-src=>'../../v3/images/itglogo.jpg');
Which seemed to be the obvious thing to, but that just outputs the
following
<IMG>-src ../../v3/images/itglogo.jpg</IMG>
Now this is a bit odd as the html img tag isn't a paired tag. A google
search turned up hundreds of pages but the only mention they had of
images was clickable image maps and the cgi image_button method.
Anyone know how to accomplish this simple task or am I going to have to
capitulate and just stick in a bit of plain old html?
Kathryn.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!