title: Twill submit function not working with form
body: <p>I am trying to write a crawler with twill for a page, and it requires me to login. I can fill in the form. But the submit() function of twill does not seem to "click" the button.</p>
  
  <pre><code>Form name=fSSUser_Logon (#1)
  ## ## __Name__________________ __Type___ __ID________ __Value__________________
  1     TFORM                    hidden    TFORM        SSUser.Logon 
  2     TPAGID                   hidden    TPAGID       SRLpKQyn1yc8 
  3     TEVENT                   hidden    TEVENT        
  4     TXREFID                  hidden    TXREFID      2 
  5     TOVERRIDE                hidden    TOVERRIDE     
  6     TDIRTY                   hidden    TDIRTY       1 
  7     TWKFL                    hidden    TWKFL         
  8     TWKFLI                   hidden    TWKFLI        
  9     TFRAME                   hidden    TFRAME        
  10    TWKFLL                   hidden    TWKFLL        
  11    TWKFLJ                   hidden    TWKFLJ        
  12    TREPORT                  hidden    TREPORT       
  13    TRELOADCMP               hidden    TRELOADCMP    
  14    TRELOADID                hidden    TRELOADID    SRLpKQy1nyc7 
  15    TOVERLAY                 hidden    TOVERLAY      
  16    RELOGON                  hidden    RELOGON       
  17    USERNAME                 text      USERNAME      
  18    PASSWORD                 password  PASSWORD      
  19    Logon                    button    Logon        Logon 
  </code></pre>
  
  <p>showforms() on the page as above.</p>
  
  <p>And the actual code for the button is the following:</p>
  
  <pre><code>&lt;input type="button" class="clsButton" id="Logon" name="Logon" tabindex="3" value="Logon" title="Logon"&gt;
  </code></pre>
  
  <p>It does not have any formaction I can use.</p>
  
  <p>My code thus far:</p>
  
  <pre><code>from twill.commands import *
  from twill import get_browser
  
  go("https://trakcarelabwebview.nhls.ac.za/trakcarelab/csp/logon.csp")
  showforms()
  
  fv("1", "USERNAME", "xx")
  fv("1", "PASSWORD", "xx")
  fv("1", "Logon", "Logon")
  
  formaction('Logon','https://trakcarelabwebview.nhls.ac.za/trakcarelab/csp/logon.csp#TRAK_main')
  submit()
  show()
  showforms()
  </code></pre>
  
  <p>Where the frame "TRAK_main" is the frame with the HTML I need.
  The last showforms() shows exactly the same forms as before the "login".</p>
  
  <p>What am I doing wrong here?</p>