PHP : how do i access a request variable outside of a class?
<p>I have a form passing a variable $oid to a php script.  the form variable is pulled and needs to be passed into a function called get_name(). The header() function in the class implements an interface called header() in the parent class.  </p>

<pre><code>    require 'pdfclass.php'; 
    $oid = $_REQUEST['oid']; 

    class p extends PDF { 
       function Header() { 
          $this-&gt;setF('Arial',10); 
          $this-&gt;Cell(50,10,get_name($oid),1,0,'c'); 

       } //end Header() 


    } //end class 

    function get_name($oid) {... } 

$pdf = new P(); 
$pdf-&gt;setF('Times',12); 
$pdf-&gt;AddPage(); 
$pdf-&gt;Output(); 
</code></pre>

<p>When i run this, i get an error on the get_name($oid) call inside the class extension.  I wish to avoid using a global variable.  Any ideas how to do this?  </p>

<p>thanks in advance</p>
