title: Passing value from HTML link to use in php if statement on next page
body: <p>I currently have a menu with 4 links, and each link goes to its own php file/page like so:</p>
  
  <pre><code>&lt;!--Page One--&gt;
  &lt;a href="temp_one.php"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template One&lt;/h5&gt;&lt;/a&gt;
  &lt;a href="temp_two.php"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template Two&lt;/h5&gt;&lt;/a&gt;
  &lt;a href="temp_three.php"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template Three&lt;/h5&gt;&lt;/a&gt;
  &lt;a href="temp_four.php"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template Four&lt;/h5&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I'm refactoring this so that I only use one single file that conditionally sets the HTML for the page depending on which link was selected, probably by using GET</p>
  
  <p>I want to change it to get values for each link that direct to a new single page, template.php, and use the value for the page so that the new url would effectively look like this:</p>
  
  <pre><code>template.php?1
  template.php?2
  template.php?3
  template.php?4
  </code></pre>
  
  <p>So essentially the same as doing this:</p>
  
  <pre><code>&lt;a href="template.php?1"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template One&lt;/h5&gt;&lt;/a&gt;
  &lt;a href="template.php?2"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template Two&lt;/h5&gt;&lt;/a&gt;
  &lt;a href="template.php?3"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template Three&lt;/h5&gt;&lt;/a&gt;
  &lt;a href="template.php?4"&gt;&lt;h5 style="padding-bottom: 10px;"&gt;Template Four&lt;/h5&gt;&lt;/a&gt;
  </code></pre>
  
  <p>The reason is that I want to be able to use the values in an if statement on template.php so that I know which HTML to use like so:</p>
  
  <pre><code>&lt;!--Page Two, template.php--&gt;
  if(value = 1){
      //HTML for template one
  }
  elseif(value=2){
      //HTML for template two
  }
  elseif(value=3){
      //HTML for template three
  }
  else{
      //HTML for template four
  }
  </code></pre>
  
  <p>How can I modify the html of the links to supply the proper value to use in the next page with an if statement?</p>