Prince99 has asked for the wisdom of the Perl Monks concerning the following question:
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:
As you can see this is not real difficult stuff, but I don't get the results I expect. According to the CGI docs:#!/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);
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
|
---|
Replies are listed 'Best First'. | |
---|---|
(Ovid - cleaning up your CGI code) Re: cgi.pm problem
by Ovid (Cardinal) on May 30, 2001 at 20:14 UTC | |
Re: cgi.pm problem
by larsen (Parson) on May 30, 2001 at 19:29 UTC | |
by Prince99 (Scribe) on May 30, 2001 at 19:37 UTC | |
Re: cgi.pm problem
by neophyte (Curate) on May 30, 2001 at 19:39 UTC | |
Re: cgi.pm problem
by arturo (Vicar) on May 30, 2001 at 19:59 UTC | |
Re: cgi.pm problem
by kiz (Monk) on May 30, 2001 at 21:18 UTC | |
by shotgunefx (Parson) on May 30, 2001 at 22:03 UTC | |
Re: cgi.pm problem
by Prince99 (Scribe) on May 30, 2001 at 21:14 UTC |