I'm using the book Programming Python and I just tried the first CGI script. This is the script:
And this is what it looks like when I open my browser (er... IE), and look at it:
print "Content-Type: text/html\n" print "" print "
A First CGI script
" print "
Hello, CGI world!
"
I really don't think its supposed to show print, "content-type... etc. "
The book shows it just running the text. Any ideas?
signed.... noobie
TMS
Code:
print "Content-Type: text/html\n" print "<TITLE>CGI 101</TITLE>" print "<H1>A First CGI script</H1>" print "<P>Hello, CGI world!</P>
print "Content-Type: text/html\n" print "" print "
A First CGI script
" print "
Hello, CGI world!
"
I really don't think its supposed to show print, "content-type... etc. "
The book shows it just running the text. Any ideas?
signed.... noobie
TMS
Comment