include "data.php"; $msg = ""; $control = new jobs(); if (!empty($_POST['login'])) { header('Location: Login.php'); } if (!empty($_POST['register'])) { if ($_POST['name'] != '' && $_POST['username'] != '' && $_POST['password'] != '' && $_POST['college'] != '' && $_POST['percentage'] != '') { if ($_POST['password'] == $_POST['Confirm_password']) { $cdetails = array(); $cdetails[0] = $_POST['name']; $cdetails[1] = $_POST['username']; $cdetails[2] = $_POST['password']; $cdetails[3] = $_POST['college']; $cdetails[4] = $_POST['percentage']; $msg = $control->addstudent($cdetails); header('Refresh: 1;Location: Login.php'); } else { echo "<script>alert('Password Do not match Try Again')</script>"; } } else { echo "<script>alert('Please Fill all the entries')</script>"; } } ?> <html lang='en'> <head> <meta charset="UTF-8" /> <title> Student SignUp Form