Perl and CGI

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Tutorialized ForumsWeb Design & DevelopmentPerl and CGI

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
Unread Tutorialized Forums Sponsor:
Old March 19th, 2009, 06:36 AM
andynic andynic is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
Join Date: Mar 2009
Posts: 1 andynic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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-image: url(\"images/gfrm/Geof_head_1468x992.jpg\");
background-position: 0px 0px;
background-attachment: fixed;
background-repeat: no-repeat;'

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 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.
also tried:

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

Reply With Quote

Viewing: Tutorialized ForumsWeb Design & DevelopmentPerl and CGI > Perl CGI <body> tag with background-image

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap