title: Post variable with onclick?
body: <p>How can I $_POST information from one page to another by clicking a link? No forms or submit boxes, just if the end user clicks on a link, it will post pertinent information in the opened link.</p>
  
  <p>Pseudocode, but:</p>
  
  <pre><code>//On first page
  &lt;a href="./page.php" onclick="post" value="var"&gt;Click me!&lt;/a&gt;
  ...
  //On the page the above links to
  $variable = $_POST["var"];
  </code></pre>
  
  <p>Something that I considered is the following, which although less than pretty, works. I'd like it so it's a post and not a get.</p>
  
  <pre><code>//On first page
  &lt;a href="./page.php?var=&lt;?php echo $variable; ?&gt;"&gt;Click me!&lt;/a&gt;
  ...
  //On second page
  $variable = $_GET["var"];
  </code></pre>