from webob import Request, Response
class WebApp(object):
def __call__(self, environ, start_response):
# capture the request coming from the browser
req = Request(environ)
print("**** Serving request ****")
# Looks for the variable (parameter) yes_no in the request
x = req.params.get('firstname')
y = req.params.get('surname')
print(x)
print(y)
if x == None or y == None or x == '' or y == '':
html = """
Hi! My name is Raspberry Pi! What's your name?