title: how to submit the query to http://www.ratsit.se/BC/Search.aspx ? I write a script but seems something wrong with the "Click" button
body: <pre><code>import urllib2, cookielib
  import ClientForm
  from BeautifulSoup import BeautifulSoup
  
  first_name = "Mona"
  last_name = "Sahlin"
  url = 'http://www.ratsit.se/BC/Search.aspx'
  cookiejar = cookielib.LWPCookieJar()
  cookiejar = urllib2.HTTPCookieProcessor(cookiejar)
  
  opener = urllib2.build_opener(cookiejar)
  urllib2.install_opener(opener)
  
  response = urllib2.urlopen(url)
  forms = ClientForm.ParseResponse(response, backwards_compat=False)
  
  #Use to print out forms if website design changes
  for x in forms:
      print x
  </code></pre>
  
  <p>'''</p>
  
  <pre><code>forms print result:
  &lt;aspnetForm POST http://www.ratsit.se/BC/Search.aspx application/x-www-form-urlencoded               &lt;HiddenControl(__VIEWSTATE=/wEPDwULLTExMzU2NTM0MzcPZBYCZg9kFgICAxBkZBYGAgoPDxYCHghJbWFnZVVy....E1haW4kZ3J2U2VhcmNoUmVzdWx0D2dkBRdjdGwwMCRtdndVc2VyTG9naW5MZXZlbA8PZGZkle2yQ/dc9eIGMaQPJ/EEJs899xE=) (readonly)&gt;
  &lt;TextControl(ctl00$cphMain$txtFirstName=)&gt;
  &lt;TextControl(ctl00$cphMain$txtLastName=)&gt;
  &lt;TextControl(ctl00$cphMain$txtBirthDate=)&gt;
  &lt;TextControl(ctl00$cphMain$txtAddress=)&gt;
  &lt;TextControl(ctl00$cphMain$txtZipCode=)&gt;
  &lt;TextControl(ctl00$cphMain$txtCity=)&gt;
  &lt;TextControl(ctl00$cphMain$txtKommun=)&gt;  
  &lt;CheckboxControl(ctl00$cphMain$chkExaktStavning=[on])&gt;    &lt;ImageControl(ctl00$cphMain$cmdButton=)&gt;
  &gt;
  </code></pre>
  
  <p>'''     </p>
  
  <pre><code>#Confirm correct form
  form = forms[0]
  
  print form.__dict__
  
  #print form.__dict__.get('controls')
  
  controls = form.__dict__.get('controls')
  print "------------------------------------------------------------"
  try:
      controls[1] = first_name
      controls[2] = last_name
      page = urllib2.urlopen(form.click('ctl00$cphMain$cmdButton')).read()
  </code></pre>
  
  <p>'''
       <strong>give error here:
       The following error occured: 
       "'str' object has no attribute 'name'"</strong>
   '''</p>
  
  <pre><code>#    print controls[9]
          print '----------here-------'
          soup = BeautifulSoup(''.join(page))
          soup = soup.prettify()
  </code></pre>