Hello so far been trying to use this line of code my goal is to reload the page via
select then the select gets the value so the page will reload with the said value so
i may be able to retrieve it.
Both of these are in 1 form.
This is where i should get my value to be used once reloaded.
<input type="hidden" name="student_id" class="typed" readonly="readonly" value="<?php echo @$get_display->student_id;?>">
And this is what I’m trying to use to reload the page at get the value above.
<select name="lvl" onchange="window.location='search_enroll.php?id='$_GET['student_id']">
Any help is appreciated thank you.
this is how i retrieve i have a problem in my last statement it is suppose to retrieve
the value once reloaded.
if (!empty($_POST['searchstudent'])){
$id = $_POST['searchstudent'];
}else if(!empty($_GET['id'])){
$id = $_GET['id'];
}
else {
$id= $_GET['student_id'];
}
If you are in a form, you can just submit the form on change:
All parameters will be available to your PHP script.