Ok, so I installed flask. And then I wrote this in IDLE:
https://ibb.co/J2P7qkT
This is the actual output:
https://ibb.co/gW6rbqp
#!/usr/bin/python3 # Import modules for CGI handling import cgi, cgitb # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields 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")This is the supposed output:
https://ibb.co/J2P7qkT
This is the actual output:
https://ibb.co/gW6rbqp