Server IP : 103.53.40.154 / Your IP : 18.216.250.143 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/maiclaliyana.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Contact Us - Maulana Azad Inter College</title> <?php include 'head-links.php'; ?> </head> <body> <!--header start --> <?php include 'header.php';?> <?php if ($_SERVER["REQUEST_METHOD"] === "POST") { echo "welcome";exit; // Escape and sanitize the input values $std_firstname = escape($_POST['std_firstname']); $std_lastname = escape($_POST['std_lastname']); $std_mobile = escape($_POST['std_mobile']); $std_email = escape($_POST['std_email']); $std_dob = escape($_POST['std_dob']); $std_gender = escape($_POST['std_gender']); $std_address = escape($_POST['std_address']); // Prepare and bind the statement $stmt = $conn->prepare("INSERT INTO maiclali_maic (std_firstname, std_lastname, std_mobile, std_email, std_dob, std_gender, std_address) VALUES (?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("sssssss", $std_firstname, $std_lastname, $std_mobile, $std_email, $std_dob, $std_gender, $std_address); // Execute the statement if ($stmt->execute()) { echo "Data inserted successfully!"; } else { echo "Error: " . $stmt->error; } // Close the statement $stmt->close(); } ?> <!--header end --> <section class="breadcrumb-wrap br-bg-3"> <img src="uploads/pages/mission-vission_19078_1645606780.jpg" /> <div class="overlay op-2 bg-black"></div> <div class="container"> <div class="breadcrumb-title"> <h2><span></span></h2> <ul class="breadcrumb-menu"> <li><a href="index.html">Home </a></li> <li>Registration</li> </ul> </div> </div> </section> <div class="container pt-50 pb-50"> <div class="row inner-page"> <h2 class="sec_title"><span>Registration</span> <div><img src="assets/img/heading.png" /></div> </h2> <div class="col-md-12"> <div class="content"> <div class="row"> <div class="col-md-12"> <div class="contact-form_wrap pb-60"> <div class="row"> <div class="col-lg-12"> <div class="section-title text-center mb-20 style1"> <h2>Register Online</h2> </div> </div> <div class="col-lg-12"> <div class="contact-form"> <form class="form-wrap" id="contactForm"> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <input type="text" name="std_firstname" placeholder="First Name*" id="std_firstname" required data-error="Please enter your first name"> <div class="help-block with-errors"></div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <input type="text" name="std_lastname" placeholder="Last Name*" id="std_lastname" required data-error="Please enter your last name"> <div class="help-block with-errors"></div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <input type="tel" name="std_mobile" placeholder="Phone Number*" id="std_mobile" required data-error="Please enter your phone number"> <div class="help-block with-errors"></div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <input type="email" name="std_email" placeholder="Email Address*" id="std_email" required data-error="Please enter your email"> <div class="help-block with-errors"></div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <input type="text" name="std_dob" placeholder="Date of Birth*" id="std_dob" required data-error="Please enter your date of birth" class="datepicker"> <div class="help-block with-errors"></div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <select name="std_gender" id="std_gender" required data-error="Please select your gender"> <option value="" selected disabled>Gender*</option> <option value="Male">Male</option> <option value="Female">Female</option> <option value="Other">Other</option> </select> <div class="help-block with-errors"></div> </div> </div> <div class="col-lg-12"> <div class="form-group v1"> <textarea name="std_address" id="std_address" placeholder="Address*" cols="30" rows="5" required data-error="Please enter your address"></textarea> <div class="help-block with-errors"></div> </div> </div> <!-- Rest of the code --> <div class="col-lg-12"> <button id="send1" class="btn v1 d-block w-100" >Submit</button> <div id="msg_response" class="h3 text-center"></div> <div class="clearfix"></div> </div> </div> </form> </div> </div> </div> </div> </div> </div> <script src="assets/js/contact-form-script.js"></script> </div> </div> </div> </div> <div class="bottomflower"></div> </div> <a href="#" class="back-to-top bounce"><i class="las la-arrow-up"></i></a> <!--footer start --> <?php include 'footer.php';?> <!--footer end --> </body> </html>