title: Posting form data to URL and taking user to the URL (PHP and HTML)
body: <p>I have a simple form like:</p>
  
  <pre><code>&lt;form action="" method="post"&gt;
      &lt;input type="text" name="user" id="user" class="txt" value="Account" /&gt;
      &lt;input type="password" name="pw" id="pw" class="txt" value="Password" /&gt;
    &lt;div class="alignleft"&gt;
      &lt;a href="#"&gt;Forgot?&lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="alignright"&gt;
      &lt;input type="submit" name="login" class="login" value="Login" /&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>This form will log people into their control panel (we hold no sensitive data and we know there are better ways to login) but anyway they are not in a database, they login by simply following a URL like this:</p>
  
  <p>www.example.com/user?user=USERNAME?pwrd=PASSWORD</p>
  
  <p>So is the user follows that URL replacing the user and password with their own it will log them in.</p>
  
  <p>How can I make my HTML form post the data to a URL and take them to the URL when they click submit?</p>
  
  <p>Thanks!</p>