/
/
home
/
u523034047
/
domains
/
harishsoftwaredeveloper.in
/
public_html
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.137
PHP 8.3.16
Dir:
/home/u523034047/domains/harishsoftwaredeveloper.in/public_html
Edit:
/home/u523034047/domains/harishsoftwaredeveloper.in/public_html/register.php
<?php if($_SERVER["REQUEST_METHOD"] == "POST"){ $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $alt_email = $_POST['alt_email']; $course = $_POST['course']; $message = $_POST['message']; // 🔹 Admin Email $admin_email = "harish8313@gmail.com"; // <-- yaha apna email daalein $subject = "New Training Registration - Web Development"; $body = " New Candidate Registration Received: Name: $name Phone: $phone Email: $email Alternate Email: $alt_email Course: $course Message: $message "; $headers = "From: $email"; if(mail($admin_email, $subject, $body, $headers)){ echo "<script> alert('Registration Successful! We will contact you soon.'); window.location='index.php'; </script>"; } else { echo "Email sending failed. Please try again."; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Training Registration | Rudrapur</title> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet"> <style> body{ margin:0; font-family:'Poppins',sans-serif; background:#0f172a; color:#fff; } .container{ max-width:600px; margin:60px auto; background:#1e293b; padding:40px; border-radius:12px; box-shadow:0 10px 25px rgba(0,0,0,0.5); } h1{ text-align:center; color:#facc15; } input, select, textarea{ width:100%; padding:12px; margin:10px 0; border:none; border-radius:6px; } button{ width:100%; padding:12px; background:#facc15; border:none; font-weight:bold; cursor:pointer; border-radius:6px; } button:hover{ opacity:0.9; } .back{ text-align:center; margin-top:20px; } .back a{ color:#facc15; text-decoration:none; } </style> </head> <body> <div class="container"> <h1>Training Registration Form</h1> <form action="register.php" method="post"> <input type="text" name="name" placeholder="Full Name" required> <input type="tel" name="phone" placeholder="Mobile Number" pattern="[0-9]{10}" title="Enter 10 Digit Mobile Number" required> <!-- Primary Email --> <input type="email" name="email" placeholder="Primary Email Address" required> <!-- Optional Alternate Email --> <input type="email" name="alt_email" placeholder="Alternate Email (Optional)"> <select name="course" required> <option value="">Select Course Duration</option> <option>26 Days - ₹3,500</option> <option>45 Days - ₹4,999</option> <option>3 Months - ₹8,999</option> <option>6 Months - ₹14,999</option> </select> <textarea name="message" placeholder="Any Message (Optional)"></textarea> <button type="submit">Submit Registration</button> </form> <div class="back"> <a href="index.php">⬅ Back to Home</a> </div> </div> </body> </html>
Ukuran: 3.2 KB