The form you need (with an id="form1"
) is loaded dynamically on the fly - this is why you don't see it in the select_forms()
results.
By using browser developer tools you may find out that the form is loaded from http://internal.aamaadmiparty.org/Directory/Format.aspx?master=blank
link.
Here's what you should start with then:
import mechanize
br = mechanize.Browser()
br.open("http://internal.aamaadmiparty.org/Directory/Format.aspx?master=blank")
br.select_form(nr=0)
br.form['ctl00$MainContent$txtname'] = 'Test Name'
# fill out other fields
req = br.submit()
Hope that helps.