CGI module problem: duplicated output
Tim Roberts
timr at probo.com
Fri Jan 9 20:57:54 EST 2004
Mimal <mi-mal at o2.pl> wrote:
>
>Hello,
> I started to learn how to use python with CGI. I went through some
>tutorials, but then I found one problem, that seems to be something
>stupid. I tried to find answer using google, but I couldn't.
>
>This is my simple CGI script:
>
>#!/usr/bin/python
>import cgi
>
>print "Content-type: text/html\n"
>print "<html>Hello, world!</html>"
Pardon me for saying so, but I don't believe you. Your script must
actually look like this:
#!/usr/bin/python
import cgi
print "<html>Hello, world!</html>"
print "Content-type: text/html\n"
print "<html>Hello, world!</html>"
That's the only answer that fits your results, and it would produce exactly
the results you describe.
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list