You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
370 B
18 lines
370 B
|
|
import cgi
|
|
|
|
form = cgi.FieldStorage()
|
|
|
|
first_name = form.getvalue('first_name')
|
|
last_name = form.getvalue('last_name')
|
|
|
|
print("Content-Type: text/html")
|
|
print()
|
|
print("<html>")
|
|
print("<head>")
|
|
print("<title>Hello - Second CGI Program</title>")
|
|
print("</head>")
|
|
print("<body>")
|
|
print("<h2>Hello %s %s</h2>" % (first_name, last_name))
|
|
print("</body>")
|
|
print("</html>")
|
|
|