title: variable session in php
body: <p>I want to retrieve my id and type from the object in which I am.</p>
  
  <p>Then , in a class i do : </p>
  
  <pre><code>$refType = $_REQUEST['refType'];
  
  $refId = $_REQUEST['refId'];
  </code></pre>
  
  <p>and :</p>
  
  <pre><code>  &lt;input id="refType" name="refType" type="hidden" value="&lt;?php echo ****" /&gt;
    &lt;input id="refId" name="refId" type="hidden" value="&lt;?php echo ****;?&gt;" /&gt;
  </code></pre>
  
  <p>And when i call my page in js i do : </p>
  
  <pre><code>  url="addNote.php?refType="+refType+"&amp;refId="+refId;
    window.location=url;
  </code></pre>
  
  <p>But in my url , when i try to go in my page i have : </p>
  
  <p>?refType=undefined&amp;refId=undefined</p>
  
  <p>Someone can help me ? Thanks !</p>