September 6th, 2004, 07: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, 02:23 AM
September 9th, 2004, 11:02 AM
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 11:04 AM.