I have a problem with this code:
<?php echo "<meta http-equiv='refresh' content='3;search_enroll.php?&id='.$id />"; ?>
I'm using this code to pass a value from this page to this page with $id and it is not empty I echoed $id and it holds the value. And this is the code on the receiving end:
<?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']; <--- this is line 37
}
?>
currently having this error note and I expect the 2nd else statement should retrieve the code.
Notice: Undefined index: student_id in C:\xampp\htdocs\Thesis\search_enroll.php on line 37