title: Submitting form with HtmlUnit
body: <p>Is there someone that know how to submit this form with HtmlUnit, Java?</p>
  
  <pre><code>    &lt;form name="sendSmsForm" method="POST" action="/talkmore3/servlet/SendSmsFromSelfcare" onsubmit="return checkBeforeSubmit();"&gt;
        &lt;input type="hidden" value name="message1" id="message1"/&gt;
        &lt;input type="hidden" value name="list" id="list"/&gt;
       &lt;table border="0" width="560"&gt;
          &lt;tbody&gt;
            &lt;tr&gt;
              &lt;td&gt;
                &lt;div id="ContactListPanel"&gt;
                  &lt;iframe height="425" width="560" frameborder="0" scrolling="no" id="ContactListFrame" name="ContactListFrame" src="/talkmore3/servlet/ManageContactList"&gt;
                  &lt;/iframe&gt;
                &lt;/div&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr align="left"&gt;
              &lt;td colspan="2" align="left"&gt;        
  &lt;div class="button_green" style="width: 114px; float: left;margin-left: 130px"&gt;
                  &lt;a href="javascript:sendSMS();" title="Send SMS"&gt;
                    &lt;span&gt;
                      Send SMS
                    &lt;/span&gt;
                  &lt;/a&gt;
                &lt;/div&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
          &lt;/tbody&gt;
        &lt;/table&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>I have tried with this:</p>
  
  <pre><code>HtmlForm form = page.getFormByName("sendSmsForm");
  form.getInputByName("list").setValueAttribute("99999999");
  form.getInputByName("message1").setValueAttribute("test");
  HtmlAnchor submit = page.getFirstByXPath("//a[@href='javascript:sendSMS();']");
  submit.click();
  </code></pre>
  
  <p>But it seems like it does not get the values of the input..</p>