require 'string'
function handle(r)
r.content_type = "text/html"
r:puts("")
r:puts("
Answer")
r:puts("")
for k, v in pairs(r:parseargs()) do
if k=='firstname' then
firstname=v
elseif k=='lastname' then
lastname=v
end
end
r:puts(string.format("Hello %s %s!", firstname, lastname))
r:puts("")
end