posting to a form with no form name

Ryan Ginstrom software at
Fri Nov 2 08:04:50 CET 2007

> On Behalf Of scripteaze at
> posting to a form with no form name or it's just that i cant 
> find the form name.
> can anyone explain how to either post to a form with no name 
> or, find the name of the my current output, but i 
> dont see a form name, also, there is only 1 form on the page

I believe you want Browser.select_form(nr=0)

# Using mechanize

from mechanize import Browser

browser = Browser()"")

browser['username'] = "me"
browser['password'] = "secret"


Ryan Ginstrom

More information about the Python-list mailing list