Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<body> parameters cgi.pm

Status
Not open for further replies.

ratz

Technical User
Oct 27, 2000
7
0
0
GB
I need to generate a response with a background image, using cgi.pm, my script looks like this:

use CGI;
$q= new CGI;
print $q->header();
print $q->start_html(-title=>'test');
print "test"
print $q->end_html;

there is a parameter for BGCOLOR:
print $q->start_html(-title=>'test',-BGCOLOR=>'blue');

what is the parameter for background?

ratz
 
From the CGI documentation (perldoc CGI) talking about $query->start_html:

This method returns a canned HTML header and the opening
<BODY> tag. All parameters are optional. In the named
parameter form, recognized parameters are -title, -author,
-base, -xbase, -dtd, -lang and -target (see below for the
explanation). [ignore]Any additional parameters you provide, such
as the Netscape unofficial BGCOLOR attribute, are added to
the <BODY> tag[/ignore]
. Additional parameters must be proceeded
by a hyphen.

So, based on the above, the answer is

-BACKGROUND
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top