Php Passing values
<p>I have a problem with this code:</p>

<pre><code>    &lt;?php   echo "&lt;meta http-equiv='refresh' content='3;search_enroll.php?&amp;id='.$id /&gt;"; ?&gt;
</code></pre>

<p>I'm using this code to pass a value from this page to this page with <code>$id</code> and it is not empty I echoed <code>$id</code> and it holds the value. And this is the code on the receiving end:</p>

<pre><code>   &lt;?php
            if (isset($_POST['SearchS'])){
                $id = $_POST['searchstudent'];

            }else if(!empty($_GET['id'])){
                $id = $_GET['id'];
            }
            else if(!empty($_GET['student_id'])){
                $id = $_GET['student_id'];
            }

            else {
                $id= $_REQUEST['student_id']; &lt;--- this is line 37
            }
            ?&gt;
</code></pre>

<p>currently having this error note and I expect the 2nd <code>else</code> statement should retrieve the code.</p>

<pre><code>Notice: Undefined index: student_id in C:\xampp\htdocs\Thesis\search_enroll.php on line 37
</code></pre>
