title: Problem in retrieving a value through $_GET method in php
body: <p>I have a link and on clicking it, a function is called. In that function, I set the href attribute to pass an id variable. If I alert the href value, I see the correct url along with the Id. But in the corresponding function in the controller, If I do an $_GET of that variable Id, I do not get the value. What is the error?</p>
  
  <p>This is my link:</p>
  
  <pre><code>&lt;a href="http://localhost/FormBuilder/reports/export?height=220&amp;width=350" id="export_entries" class="thickbox button" title= "Export" &gt;Export&lt;/a&gt;  
  </code></pre>
  
  <p>And the corresponding on click function:</p>
  
  <pre><code>$("#export_entries").click(function() {
      $(this).attr("href",$(this).attr("href")+"&amp;id="+formid);
      alert($(this).attr("href"));
  });
  </code></pre>
  
  <p>In this alert box,If I click the second link, I get the value as </p>
  
  <pre><code> http://localhost/FormBuilder/reports/export?height=220&amp;width=350&amp;id=2
  </code></pre>
  
  <p>But In my export function in the controller I do not get the value. The variable formid is empty.</p>
  
  <pre><code>function export()
     {
  
          $formid=$_GET['id'];
          echo " formid: ".$formid;
          $this-&gt;set('formid',$formid);
     }
  </code></pre>