How to pass a value with the same PHP file?
<p>I want to pass the same boolean value "isProvena" several times in two PHP files. The first time I pass the value from utilitizer.php to hraprint.php by using the codes as follows:</p>

<pre><code>if ($_POST['type'] == 'printphys' || $_POST['type'] == 'printprovenahpa')
{
echo "&lt;form action='/content/822' method=post&gt;";
echo "&lt;input type=hidden name=filename value='$filename'&gt;";
if($_POST['type'] == 'printprovenahpa') {echo "&lt;input type=hidden name=isProvena      value='1'&gt;";}
echo "&lt;input type=hidden name=content value='";
if ($_POST['type'] == 'printphys') echo 751;
else if ($_POST['type'] == 'printprovenahpa') echo 520;
echo "'&gt;";
echo "&lt;input type=submit value='Start Job'&gt;&lt;/form&gt;";
}    
</code></pre>

<p>And then I get the value "isProvena" from hraprint.php and post(get) again:</p>

<pre><code>$isProvena        = false;
extract($_REQUEST, EXTR_IF_EXISTS);
$isProvena        = (boolean)$isProvena;

&lt;form action="/content/822" method="GET"&gt;
&lt;input type="hidden" name="isProvena" value="&lt;?php echo ($isProvena) ? '1' : '0' ?&gt;" /&gt;
 &lt;tr&gt;
    &lt;td&gt;&lt;label for="showOnlyScreening"&gt;Print Only Screenings:&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input id="showOnlyScreening" type="checkbox" name="showOnlyScreening" value="1" &lt;?php echo ($isProvena) ? 'checked="checked"' : ''?&gt;/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;/table&gt;
&lt;/form&gt;
</code></pre>

<p>And post again:</p>

<pre><code>&lt;form action="/content/822" method="POST"&gt;
&lt;input type="hidden" name="isProvena" value="&lt;?php echo ($isProvena) ? '1' : '0' ?&gt;" /&gt;
&lt;/table&gt;
</code></pre>

<p>And I do the judgement here:</p>

<pre><code> if($isProvena){
   .........     
 }
</code></pre>

<p>The reason I need to post(get) several times is that there are several page redirect action happens in the same PHP file(hraprint.php). When I was trying to get the value which is supposed to be 'true' from if($isProvena){} and execute the function, I failed.</p>

<p>Anyone can help me to have a look and tell me what is wrong?</p>
