// If login form is posted, log the user in /*if(isset($_POST['login'])) { userLogin($_POST['username'], $_POST['password']); }*/ if (isset($_POST['signin_student'])) { studentSignin(); } if (isset($_POST['signin_teacher'])) { teacherSignin(); } if (isset($_POST['rate_course'])) { rateCourse($_SESSION['user_id'], $_POST['course_id'], $_POST['like'], $_POST['rating_comment'], $_POST['course_teacher_id']); } if (isset($_POST['rate_teacher'])) { rateTeacher($_SESSION['user_id'], $_POST['teacher_id'], $_POST['like'], $_POST['rating_comment'], $_POST['teacher_course_id']); } if (isset($_POST['logout'])) { logout(); } if (isset($_POST['red'])) { changeTheme("red"); } if (isset($_POST['blue'])) { changeTheme("blue"); } if (isset($_POST['orange'])) { changeTheme("orange"); } if (isset($_POST['purple'])) { changeTheme("purple");
function submitRatings($pdo, $s_id, $c_id, $t_id, $c_tid, $t_cid, $t_gen, $c_gen, $t_q1, $t_q2, $t_q3, $t_q4, $t_q5, $t_comment, $c_q1, $c_q2, $c_q3, $c_q4, $c_q5, $c_comment) { //echo $t_q1 . " " . $c_q1; //die(); rateTeacher($pdo, $s_id, $t_id, $c_id, $t_gen, $t_q1, $t_q2, $t_q3, $t_q4, $t_q5, $t_comment); rateCourse($pdo, $s_id, $t_id, $c_id, $c_gen, $c_q1, $c_q2, $c_q3, $c_q4, $c_q5, $c_comment); //die(); }