title: Python Mechanize: How to input into TextControl and click on ImageControl icon?
body: <p>I am trying to enter postal code information into <a href="http://www.gasbuddy.com/" rel="nofollow">http://www.gasbuddy.com/</a> and click 'Search' using Mechanize</p>
  
  <p>So I was able to scrape the form with the following data:</p>
  
  <pre><code>&lt;TextControl(ctl00$Content$GBZS$txtZip=City, Province or Postal Code...)&gt;
  &lt;ImageControl(ctl00$Content$GBZS$btnSearch=)&gt;
  </code></pre>
  
  <p>I am able to insert text into the TextControl (I assume), which changes the form to:</p>
  
  <pre><code>&lt;TextControl(ctl00$Content$GBZS$txtZip=ABC 123)&gt;
  &lt;ImageControl(ctl00$Content$GBZS$btnSearch=)&gt;
  </code></pre>
  
  <p>using the following code:</p>
  
  <pre><code>browser.select_form(nr=0)
  browser["ctl00$Content$GBZS$txtZip"] = "ABC 123"
  
  for form in browser.forms():
      print list(browser.forms())[0];
  </code></pre>
  
  <p>So my question is how can I click the ImageControl? I tried doing a browser.submit(), but it doesnt work.</p>