#!/usr/bin/python

# 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')

if form.getvalue('straws'):
  straws = True
else:
  straws = False

if form.getvalue('styrofoam'):
  styrofoam = True
else:
  styrofoam = False

print "Content-type:text/html\r\n\r\n"
print "<html>"
print "<head>"
print "<title>Hello</title>"
print "</head>"
print "<body>"
print "<h2>Hello %s %s :)</h2>" % (first_name, last_name)
if first_name == "Dev" and last_name == "Test":
  print "<h1>Good job bruh</h1>"

if straws == False and styrofoam == False:
  print ":O omg place is hella sustainable. No styrofoam and no straws"
elif straws == True and styrofoam == True:
  print "jeez. place has straws <i>and</i> styrofoam -_-"
else:
  if straws:
    print "They use straws. :("
  else:
    print "No straws. :)"
  if styrofoam:
    print "They use styrofoam. :("
  else:
    print "No styrofoam. :)"

print "</body>"
print "</html>"

