title: Use Mechanize with select field that is not inside a form?
body: <p>I would like to use Mechanize (with Python) to submit a form, but unfortunately the page has been badly coded and the <code>&lt;select&gt;</code> element is not actually inside <code>&lt;form&gt;</code> tags.</p>
  
  <p>So I can't use the traditional method via the form: </p>
  
  <pre><code>forms = [f for f in br.forms()]
  mycontrol = forms[1].controls[0]
  </code></pre>
  
  <p>What can I do instead?</p>
  
  <p>Here is the <a href="http://www.education.gov.uk/schools/performance/" rel="nofollow">page I would like to scrape</a>, and relevant bit of code - I'm interested in the <code>la</code> select item: </p>
  
  <pre><code>    &lt;fieldset class="searchField"&gt;
        &lt;label&gt;By region / local authority&lt;/label&gt;
        &lt;p id="regp"&gt;
          &lt;label&gt;Region&lt;/label&gt;
          &lt;select id="region" name="region"&gt;&lt;option&gt;&lt;/option&gt;&lt;/select&gt;
        &lt;/p&gt;
        &lt;p id="lap"&gt;
          &lt;label&gt;Local authority&lt;/label&gt;
          &lt;select id="la" name="la"&gt;&lt;option&gt;&lt;/option&gt;&lt;/select&gt;
        &lt;/p&gt;
        &lt;input id="byarea" type="submit" value="Go" /&gt;
        &lt;img id="regmap" src="/schools/performance/img/map_england.png" alt="Map of regions in England" border="0" usemap="#England" /&gt;
      &lt;/fieldset&gt;
  </code></pre>