title: Having trouble using Mechanize
body: <p>So I'm new to using mechanize, and I'm trying to write a program in python 2.7 to log me into my campus wifi.</p>
  
  <p>So I've written some code using mechanize that should log me in. The names of each field are accurate, as is the form name. However, whenever i run the program, nothing seems to happen. it doesn't submit the data, and the program stays running, so i have to force close it.</p>
  
  <p>am i missing anything? i've been hunting over the web, and what i'm doing seems to be okay.</p>
  
  <pre><code>mechbrowse=mechanize.Browser()
  
  mechbrowse.open(login_page)
  
  mechbrowse.select_form(name='frmHTTPClientLogin')
  
  mechbrowse.form['username'] = login_username
  mechbrowse.form['password'] = login_password
  
  mechbrowse.submit(name='btnSubmit')
  </code></pre>
  
  <p>do i need to write anything so that all this gets executed?</p>