<script>
function showCourse(str) {
if (str == "") {
document.getElementById("txtHint").ierHTML = "";
return;
} else {
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("txtHint").ierHTML = this.responseText;
}
};
xmlhttp.open("GET","registergetcoursedetails.php?q="+str,true);
xmlhttp.send();
}
}
</script>
<?php student_id='123456'; ?>
<select name="getcourse" class="form-control" id="getcourse" onchange="showCourse(this.value)" required></select>
<div id="txtHint">لطفا دوره مورد نظر را انتخاب کنید و پس از بررسی اطلاعات دوره گزینه "ثبت نام" را کلیک کنید.</div>$q = intval($_GET['q']);
برچسب:
نویسنده: کاوه محمدزادگان