title: Submiting a web form in wordpress
body: <p>I'm pretty newbie in wordpress and I'm having some difficulties dealing with a simple form layout / submission.
  I have a page (created from the wp-admin page) that holds the following code:</p>
  
  <pre><code>&lt;div class="container-fluid"&gt;
      &lt;form class="form-horizontal" action="" method="POST" &gt;
          &lt;div class="row form-group"&gt;
              &lt;div class="col-xs-12"&gt;
                  &lt;label for="name"&gt;Nome&lt;/label&gt;
                  &lt;input type="text" class="form-control" id="name" name="name" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row form-group"&gt;
              &lt;div class="col-xs-12"&gt;
                  &lt;label for="residence"&gt;Residência&lt;/label&gt;
                  &lt;input type="text" name="residence" id="residence" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row form-group"&gt;
              &lt;div class="col-sm-6"&gt;
                  &lt;input class="btn btn-default" type="submit" value="Registar"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My problem here is that I don't know what to put in the action attribute and how to process the form afterwards. I have tried to create a php file in the template folder and put it in the action but it did not work at all. 
  I have also seen some actions that can be added to functions.php but I don't see that as the best solution to the problem. All I want is to submit the form, store it in the database as meta-data and redirect the user to the main page.</p>