I have a cgi script which is working fine and has all the details I need - it could do with a bit of colour - where withing the cgi script would I set body color etc...
CGI programs output normal HTML to the browser. All you need to do is open the cgi script in a text editor and search for <body>.
Now if the HTML color is hard coded you can change it there. If it is not hard coded you will have to find the variable that sets the color some place else in the script. The program may also parse another file to gather the HTML code and then produce the output. As you can see, this can get more complicated the more advanced the program becomes. Send us some code after you search and we will see what we can do.
The 'body' tag is being printed by the 'start_html' method. That method is imported with the CGI.pm module and accepts some arguments. See the docs for the CGI.pm module.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.