title: Making a link pass a POST method in Django
body: <p>I have a view acting differently for GET and POST methods and I have the following template for a page containing 2 links to the corresponding URL</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
     &lt;script language="JavaScript" type="text/javascript"&gt;
      function getsupport ( selectedtype )
      {
      document.create_station.supporttype.value = selectedtype ;
      document.create_station.submit() ;
      }
    &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;h1&gt; Hey {{ object.username }}! &lt;/h1&gt;
    &lt;p&gt;&lt;a href="{% url 'list_create_station' %}"&gt;View your stations&lt;/a&gt;   &lt;/p&gt;
    &lt;form name="create_station" method="post" action=""&gt;
      &lt;input type="hidden" name="supporttype" /&gt;
      &lt;a href="{% url 'list_create_station' %}"&gt;Create a new Station&lt;/a&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am trying to make the second link pass a POST method instead of GET with help from code at <a href="http://www.thesitewizard.com/archive/textsubmit.shtml" rel="nofollow">http://www.thesitewizard.com/archive/textsubmit.shtml</a> </p>
  
  <p>But the link still passes a GET, verified it using Chromium developer tools.</p>
  
  <p>I am a novice and hence have literally copied the code from the reference. I understand bits and parts so please someone give an answer accordingly. It would be lovely if someone tells me exactly what I am doing wrong here and explain to me what changes exactly I have to make.</p>