September 6th, 2004, 08:23 PM
Python Posting to a Form
Hi, I want to fill out a web form, make changes to selected listboxes etc. I have been looking on google, and I see a few options like pycurl, and urllib2. I have not found good examples of what I want to do. Can anyone recommend which module I should be using, and any sites that will help? Thanks
September 7th, 2004, 03:23 AM
September 9th, 2004, 12:02 PM
Update: Whoops, read your question wrong, the bottom is prob not what you want, I'll keep it here in case it helps others though:
To read from a form, you can also do it using the cgi module, something like:
form action="asdf.py" method="GET"
input name="name" type="text"
input type="submit" value="k"
a = cgi.FieldStorage()
print 'Content-type: text/plain\n'
if a.has_key('name'): print 'Hey', a['name']
Last edited by movEAX_444; September 9th, 2004 at 12:04 PM.