Perl and CGI

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



Go Back   Tutorialized ForumsWeb Design & DevelopmentPerl and CGI

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
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

Hi,

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;'
onLoad='document.$formNm.dbPassword.focus();'>";

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
background-image:url(\"images/gfrm/Geof_head_1468x992.jpg\");
to
background-image:url(\"/gfr-bin/Geof_head_1468x992.jpg\");
and putting the jpg in the /gfr-bin/ directory. (everything runs from /gfr-bin/). This did not work either.
also tried:
background-image:url(\"http://localhost/gfr-bin/Geof_head_1468x992.jpg\");


Anyone have any ideas?
Thanks for your help.
Andynic
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
Reply

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 - 2018, Jelsoft Enterprises Ltd.

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