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
In reply to HTML Tag attribute problems with CGI.pm by Prince99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |