in reply to CGI 'start_html' not printing opening <body> or <html>

CGI just returns the text, it does not print it, so you have to print that for yourself. You also will need to print the header.

If the end_html stuff is being printed, then I am guessing that whoever called the poorly named sectionOne function is printing what it returns, and end_html is what gets returned and therefore printed.

As a random note, with most ways of organizing code, you are better off using a templating system and not using CGI's html generation methods. This is not a hard and fast rule, but it is a good guideline. See Re (tilly) 6: Code Critique for some general advice on templating.

  • Comment on Re: CGI 'start_html' not printing opening <body> or <html>