X7ROOT File Manager
Current Path:
/home/u126090504/domains/utkaltutorial.in/public_html
home
/
u126090504
/
domains
/
utkaltutorial.in
/
public_html
/
📄
+2Arts.php
(13.56 KB)
📄
+2Science.php
(13.77 KB)
📁
..
📄
.htaccess
(1.12 KB)
📄
Antiraging-Cell.php
(2.73 KB)
📄
about-us.php
(12.17 KB)
📄
academic-head-message.php
(5.84 KB)
📄
achievers.php
(3.07 KB)
📁
admin
📄
admission.php
(4.64 KB)
📄
admission_submit.php
(2.52 KB)
📁
aimers
📄
album.php
(890 B)
📄
cbse-coaching.php
(9.24 KB)
📄
config.php
(1.15 KB)
📄
contact-us.php
(14.62 KB)
📄
contactdb.php
(796 B)
📁
css
📄
director's-message.php
(5.37 KB)
📄
downloads.php
(3.14 KB)
📄
error.log
(14.6 KB)
📄
facilities.php
(15.43 KB)
📄
faculty.php
(4.96 KB)
📁
fonts
📄
footer.php
(30.36 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.21 KB)
📁
ganesh
📄
governing-body.php
(3.58 KB)
📄
grievance-form.php
(13.71 KB)
📄
header.php
(15.48 KB)
📁
images
📄
index.php
(49.35 KB)
📁
js
📁
lib
📄
our-recruiters.php
(2.77 KB)
📄
payment.php
(8.1 KB)
📄
payment_submit.php
(10.97 KB)
📄
payment_verify.php
(2.31 KB)
📄
peret.php
(266.87 KB)
📄
placement.php
(8.33 KB)
📄
principal's-message.php
(6.02 KB)
📁
qrcodes
📁
revolution
📄
scope.php
(14.14 KB)
📄
search_videos.php
(1.76 KB)
📁
shree
📄
submit-grievance.php
(3.88 KB)
📄
thank-you.php
(1.28 KB)
📄
tutorial.php
(4.8 KB)
📄
u893294702_aimers.sql
(38.52 KB)
📁
uploads
📄
utkal.zip
(89.19 MB)
📄
videos.php
(4.38 KB)
Editing: admission_submit.php
<?php require_once 'config.php'; error_reporting(E_ALL); ini_set('display_errors', 1); if ($_SERVER['REQUEST_METHOD'] === 'POST') { // 🛑 Honeypot (bot protection) if (!empty($_POST['website'])) { die("Spam detected"); } // 📥 Get form data $name = trim($_POST['name'] ?? ''); $father = trim($_POST['father_name'] ?? ''); $phoneRaw = $_POST['number'] ?? ''; $email = trim($_POST['email'] ?? ''); $dob = $_POST['dob'] ?? ''; $address= trim($_POST['address'] ?? ''); $school = trim($_POST['school'] ?? ''); $course = $_POST['course'] ?? ''; $message= trim($_POST['message'] ?? ''); // 📱 Phone clean $phone = preg_replace('/\D/', '', $phoneRaw); if (strlen($phone) == 12 && substr($phone,0,2) == "91") { $phone = substr($phone, 2); } if (strlen($phone) == 11 && substr($phone,0,1) == "0") { $phone = substr($phone, 1); } // ✅ Validation if (!preg_match("/^[6-9][0-9]{9}$/", $phone)) { die("❌ Invalid Mobile Number"); } if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { die("❌ Invalid Email Address"); } if (!$conn) { die("❌ Database connection failed"); } // ✅ INSERT QUERY (UPDATED) $stmt = $conn->prepare("INSERT INTO admissions (student_name, father_name, mobile, email, dob, address, school_name, course, notes) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"); if (!$stmt) { die("Prepare failed: " . $conn->error); } $stmt->bind_param("sssssssss", $name, $father, $phone, $email, $dob, $address, $school, $course, // ✅ course added $message ); if ($stmt->execute()) { // 📲 WhatsApp message $wa_number = "918908155238"; $wa_message = "New Admission Form:%0A" ."Name: $name%0A" ."Father: $father%0A" ."Mobile: $phone%0A" ."Email: $email%0A" ."DOB: $dob%0A" ."Address: $address%0A" ."School: $school%0A" ."Course: $course%0A" ."Message: $message"; echo "<script> alert('✅ Admission Submitted Successfully!'); window.location.href='https://wa.me/$wa_number?text=$wa_message'; </script>"; } else { die("❌ Error: " . $stmt->error); } $stmt->close(); $conn->close(); } ?>
Upload File
Create Folder