title: What is the difference between POST and GET in HTML/PHP
body: <p>I am coding a PHP script, but I can't really seem to get it to work. I am testing out the basics, but I don't really understand what GET and POST means, what's the difference? All the definitions I've seen on the web make not much sense to me, what I've coded so far (but since I don't understand POST and GET, I don't know how to get it to work:</p>
  
  <pre><code>    &lt;form name="mail_sub" method="get"&gt;
  Name: &lt;input type="text" name="theirname"&gt; &lt;br /&gt;
  Email:&amp;nbsp; &lt;input type="text" name="theirpass"&gt; &lt;br /&gt;
  &lt;input type="submit" value="Join!" style="width:200px"&gt;
  &lt;/form&gt;
  &lt;?php
  if (isset($_POST['mail_sub']))
      {
  
      echo $_POST['theirname'];
  
      }
  ?&gt;
  </code></pre>