Hi, I'm doing a project in php and I would like to know how you can use the value of a variable that is inside a script in another php page.
This is the script:
<script language="javascript" src="jquery-3.2.1.min.js"></script>
<script language="javascript">
$(document).ready(function(){
$('#cbx_materia').on('change',function(){
var id=$('#cbx_materia').val();
document.getElementById("materia").value = id;
});
});
</script>
What I want is to use the variable id selected from a combobox on another page, for example report.php, how can I pass that value?