
July 7th, 2004, 01:03 AM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Also, you'll need to change your script to print an appropriate response header and send your output to stdout, instead of to a file.
For example:
Code:
# Print a header and a blank line afterwards to indicate end of header
print "Content-type: text/html"
print
# Now print your HTML page
print "<html><head><title>Hello</title></head>"
print "<body>"
print " Hello World"
print "</body>"
print "</html>"
Also, to make your CGI script handle form variables, you may wish to use the following modules:
Code:
import cgi
# The next two lines are useful, to print script errors to the browser
import cgitb
cgitb.enable()
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|