#!/usr/bin/python

# Import modules for CGI handling 
import cgi, cgitb 

# Create instance of FieldStorage 
form = cgi.FieldStorage() 

# Get data from fields
nom = form.getvalue('nom')
prenom  = form.getvalue('prenom')

print "Content-type:text/html\r\n\r\n"
print "<html>"
print "<head>"
print "<title>Hello - Second CGI Program</title>"
print "<meta http-equiv='content-type' content='text/html;charset=UTF-8'>"
print "</head>"
print "<body>"
print "<h2>Hello %s %s</h2>" % (prenom, nom)
print "</body>"
print "</html>"
