Newbie CGI problem

m anomousty at webwonders.org
Fri Feb 18 12:31:46 EST 2005


Rory Campbell-Lange wrote:
> #!/usr/bin/python
> import cgi
> print "Content-type: text/html\n\n"
> print "hi"
> 
> Gives me the following in my browser:
> 
> '''
> hi
> Content-type: text/html
> 
> 
> hi
> '''
> 
> Why are there two 'hi's?
> 
> Thanks,
> Rory

gives just one hi for me.



More information about the Python-list mailing list