Newbie CGI problem

Rory Campbell-Lange rory at campbell-lange.net
Fri Feb 18 12:10:46 EST 2005


#!/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
-- 
Rory Campbell-Lange 
<rory at campbell-lange.net>
<www.campbell-lange.net>



More information about the Python-list mailing list