http://qs1969.pair.com?node_id=84285

Prince99 has asked for the wisdom of the Perl Monks concerning the following question:

Hail brother monks,

I am trying to write a little perl script that makes use of CGI.pm and am having trouble understanding a couple of things. Here is what I have done so far:

#!/usr/local/bin/perl -w use strict; use CGI qw/:standard/; # load standard CGI routines my $query = new CGI; print $query->header(type=>'image/gif'); print $query->start_html(title=>'PMI Human Resources', author=>'berry-kelly@pmimail.com', meta=>{'keywords'=>'PMI HR HumanResources', 'copyright'=>'copyright 2001 Kelly Be +rry'}, style=>{'src'=>'style.css'}, BGCOLOR=>'blue'); print $query->start_form(method=>'post', action=>'editpositions.pl') +; print "What is the Job Title?"; print $query->textfield('JobTitle','',30,80); print "<br><br>What is the Date Listed?"; print $query->textfield('DateListed','',30,80); print "<br><br>What is the Job Description?<br>"; print $query->textarea('Description','',10,80);
As you can see this is not real difficult stuff, but I don't get the results I expect. According to the CGI docs:
"Any additional attributes you want to incorporate into the <BODY> tag(as many as you like). This is a good way to incorporate other Netscape extensions, such as backgroung color and wallpager pattern.

This code doesn't change the bgcolor, it just print BGCOLOR on my html page. Also is there a way to put a BACKGROUND image on the page? Any help would be appreciated...

Prince99 bangs his head against the wall in frustration.


Prince99
Too Much is never enough...

Edit by tye