connect_error) { die("Connection failed: " . $conn->connect_error); } $fname = $_REQUEST['fname']; $lname = $_REQUEST['lname']; $gender = $_REQUEST['gender']; $regno = $_REQUEST['regno']; $phone = $_REQUEST['phone']; $email = $_REQUEST['email']; $department = $_REQUEST['department']; $sql = "INSERT INTO $dbname VALUES ('$fname','$lname','$gender','$regno','$email',$department)"; if(mysqli_query($conn, $sql)){ echo "