Hi, I'm trying to pass arguments to a python script running on my
webserver. Here is the script:

import cgi
import cgitb
import sys
cgitb.enable()

form = cgi.FieldStorage()
title = form.getvalue("title")
print """Content-type: text/html

<html><body>"""
print form.keys()
print """</body>
</html>
"""

When I run it on the website like
http://mf-doom.com/album.py?title=blah it just prints out an empty
array. Is there something wrong with my code? Or is there something
wrong with the way my server's configured?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to