Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/imyrqtmy/public_html/vssvclinic/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include("Admin/Includes/db.php"); if(isset($_POST['appointment_submit'])){ $department = $_POST['department']; $doctor = $_POST['doctor']; $fromdateone = $_POST['fromdateone']; $fromtimeone = $_POST['fromtimeone']; $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $disease = $_POST['disease']; if ($disease == 'Others') { // If 'Others' is selected, retrieve the custom disease entered by the user $disease = ($_POST['others_disease']); } $query = "INSERT INTO appointment (department, doctor, fromdateone, fromtimeone, name, email, phone,disease) VALUES ('$department','$doctor','$fromdateone','$fromtimeone','$name', '$email','$phone','$disease')"; $query_run = mysqli_query($con, $query); if($query_run){ $_SESSION['status'] = "Appointment Book Successfully"; header('Location: appointment.php'); } else { $_SESSION['status'] = "Appointment Not Booked"; header('Location: appointment.php'); } } ?>