How to send the result of Python CGI script to the browser?

WX PythonCGIPython

# Get data from fields from HTML page
first_name = form.getvalue('first_name')
last_name  = form.getvalue('last_name')
send data to Browser
print("Content-type:text/html")
print
print("")
print("")
print("Hello - Second CGI Program")
print("")
print("")
print("
Hello %s %s
" % (first_name, last_name))
print("")
print("")
raja
Published on 22-Jun-2018 12:18:39
Advertisements