title: Page wont submit via post. Using JS to submit via <a href>
body: <p>I am trying to make my page submit. I dont want to use <code>&lt;input&gt;</code> for styling reasons so I am using an <code>&lt;a href&gt;</code> tag for my submit button and attempting to use <code>Javascript</code> to submit the form.</p>
  
  <p>So I have the form. Note: the form is <code>echo</code>ed out via PHP.</p>
  
  <pre><code>&lt;form method=\"post\" name=\"roomSubmit\" &gt;
      &lt;textarea cols=\"40\" rows=\"1\" type=\"text\" name=\"roomName\" id=\"regularInput\"&gt;&lt;/textarea&gt;
      &lt;a href=\"#\" onclick=\"document.forms['roomSubmit'].submit();\" class=\"button button-small\"&gt;Create&lt;/a&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>So as you can see the form name is <code>roomSubmit</code>. I need the information in the textarea to be put into a PHP <code>$_POST</code> variable.</p>
  
  <p>When i do:
  <code>var_dump $_POST;</code> after attempting to submit using that button, it doesn't show anything in the POST array.</p>
  
  <p>Any ideas would be greatly appreciated!</p>
  
  <p>Thank you!</p>