Hello friends,
I saw some fanastic people about python as web application. Here is a example to use Python as CGI
lizzie.py?data=param
just copy and paste this code, put it in your cgi-bin change appropiate permission.CHANGE CHMOD 777(if you dont know about CHMOD).
Happy Python Programming
I saw some fanastic people about python as web application. Here is a example to use Python as CGI
lizzie.py?data=param
| Code: |
|
#!/usr/bin/python print "Content-Type: text/html\n\n" import cgi form = cgi.FieldStorage() strBlah = form["data"].value print """ Lizzie Loves %s """ % strBlah.replace( '"', '\\"') |
just copy and paste this code, put it in your cgi-bin change appropiate permission.CHANGE CHMOD 777(if you dont know about CHMOD).
Happy Python Programming
