title: php post via html <a> tags
body: <p>I have built a site using php and want to try keep it one page.. The site displays pictures and so far i have it making links from folders in a folder each folder contains images so what i want is to make a post/get tag in the url and when the page loads it uses this to get the images from that folder.</p>
  
  <p>So I want to use the generated links to post to the same page with a value via self_post is this possible and if so how?</p>
  
  <p>my get section is </p>
  
  <pre><code>if(empty($_post['foldername']))
  {
     $directory = "portfolio/homepage/";
  
  }
  else if(isset($_post['foldername']))
  {
     $foldername = $_post['foldername'];
     $directory = "portfolio/".$foldername."/";       
  }
  </code></pre>
  
  <p>and my link is like this </p>
  
  <pre><code>echo '&lt;li&gt;&lt;a id="" class="" href="'.$_SERVER["PHP_SELF"].'"&gt;'.$b.'&lt;input type="hidden" name="foldername" value="'.$b.'" /&gt;&lt;/a&gt;&lt;/li&gt;';
  </code></pre>
  
  <p>Thanks</p>