#!/usr/local/bin/perl
use warnings;
use strict;
use CGI qw(:standard);
print header;
print start_html(-title=>"Hello World",
-bgcolor=>"#cccccc", -text=>"#999999",
-background=>"healo.jpg");
The color displays, but not the image.
I have the healo.jpg located in the bin folder and my home folder.
I took this code from http://www.cgi101.com/book/ch1/text.html
Please help.
If your CGI script is in a standard
cgi-bin, the filehealo.jpgcannot be stored there because it is not a CGI script. Try putting it somewhere else.For example, you could put the image file in your wwwroot, so that you can find it at http://csvlife.com/healo.jpg (there’s already something there), and then change that part of the code to
-background=>"/healo.jpg".