PDA

View Full Version : cgi question



coolguy23
July 2nd, 2001, 18:34
hello, i'm completly illeterale in cgi :D
well i just have a question, how would i make the bgcolor black?
thanks

atlas
July 2nd, 2001, 21:08
That's an HTML question. Just put bgcolor=#000000 in your body tag.

Like:


<body bgcolor=#000000>

coolguy23
July 2nd, 2001, 21:40
what exactly would i put in a cgi script, because i don't think you can just add html inside a cgi script..,or can you?

atlas
July 2nd, 2001, 21:47
#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "<body bgcolor=#000000>";



That's a simple perl script that'll do it for you.

-mk