title: Using Mechanize (Python) to fill form
body: <p>I want to fill the form on this page using python mechanize and then record the response. How should I do it? When I search for forms on this page using the following code, it shows the form only for the search. How should I locate the form name of the other form with fields such as name, gender etc? </p>
  
  <p><a href="http://aapmaharashtra.org/join-us" rel="noreferrer">http://aapmaharashtra.org/join-us</a></p>
  
  <p>Code:</p>
  
  <pre><code>import mechanize
  br=mechanize.Browser()
  br.open("http://aapmaharashtra.org/join-us")
  for form in br.forms():
      print "Form name:", form.name
      print form
  </code></pre>