March 19th, 2009, 07:36 AM
Join Date: Mar 2009
Time spent in forums: 12 m 22 sec
Reputation Power: 0
Perl CGI <body> tag with background-image
I have coded a simple form using Perl CGI using an Apache Server.
The code contains the following construct:
my $formNm = "getLoginInfo";
my $bodyDef = "<body style='font-family:Arial; font-size:18px;
background-position: 0px 0px;
my $formDef = "<form name=$formNm action='gfrm.cgi' method='POST'>";
For some reason the background image does not display.
If however, I use right-click --> View Source and then save the code into, for example x.html, when I double-click x.html, the image displays as wanted.
I have run x.html through the validator at
w3.org and it shows no errors.
Why would this not work via CGI?
Might it have something to do with the entries in the Apache httpd.conf file? In the cgi script, I have tried changing
and putting the jpg in the /gfr-bin/ directory. (everything runs from /gfr-bin/). This did not work either.
Anyone have any ideas?
Thanks for your help.
Windows XP service pack 3
Active Perl 5.10
Apache Server 2.2
Internet Explorer 7, Safari 3.2.2, Firefox 5