CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/lib64/python2.6/Demo/cgi/
Upload File :
Current File : //proc/2/root/usr/lib64/python2.6/Demo/cgi/cgi2.py

#! /usr/bin/env python2.6

"""CGI test 2 - basic use of cgi module."""

import cgitb; cgitb.enable()

import cgi

def main():
    form = cgi.FieldStorage()
    print "Content-type: text/html"
    print
    if not form:
        print "<h1>No Form Keys</h1>"
    else:
        print "<h1>Form Keys</h1>"
        for key in form.keys():
            value = form[key].value
            print "<p>", cgi.escape(key), ":", cgi.escape(value)

if __name__ == "__main__":
    main()

Copyright 2K16 - 2K18 Indonesian Hacker Rulez