Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

CGI: Lire les données d’un formulaire HTML

 list, list, html
{filelink=16694}

#!c:/Python32/python
 
import cgi
 
def gen_html_header() :
    print "Content-Type: text/html"
    print "<HTML>"
 
def gen_html_trailer() :
    print "</HTML>"
 
# Obtenir la liste des champs soumis
form = cgi.FieldStorage()
 
gen_html_header()
for elem in form :
    print "Réçu <b/>" + elem + " = ["+form.getvalue(elem)+"]<BR>"

Livres Sur ce Sujet

----------------------------------------------------------------------------

Comments are closed.