D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
mpwalmi
/
www
/
Filename :
profile.php
back
Copy
<?php session_start(); if(!isset($_SESSION['unique_id'])){ header("location: index.php"); } include_once "php/config.php"; ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>My Profile - M.P. Water and Land Management Institute, Bhopal</title> <meta name="author" content="Webful Creations"> <meta name="keywords" content=" Contact Us | M.P. Water and Land Management Institute, Bhopal"> <meta name="description" content=" M.P. Water and Land Management Institute (WALMI), Bhopal. <br>(An Autonomous Institution of Government of Madhya Pradesh) , Fill the form below to contact."> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"/> <?php include 'header-link.php'; ?> </head> <body style="background-image: url('assets/images/park/wp3556796.jpg');"> <div class="main-container"> <?php include 'header.php'; ?> <div class="title-section dark-bg module grey-bg"> <div class="container"> <div class="row"> <div class="col-sm-12 col-padding-y"> <div class="title-section-text"> <h2>Profile</h2> </div> </div> </div> </div> </div> <div class="contact-page module"> <div class="container"> <div class="row justify-content-center"> <div class="col-sm-12 col-lg-8 col-md-8 col-padding-y card"> <div class="comment-form signup"> <h2>Edit your profile</h2> <?php $id = $_SESSION['unique_id']; $sql = "Select * FROM tbl_registration WHERE rid = $id"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { ?> <p> M.P. Water and Land Management Institute (WALMI), Bhopal. <br>(An Autonomous Institution of Government of Madhya Pradesh)</p> <form class="needs-validation" method="POST" novalidate action="#" > <div class="error-text"></div> <div class="form-row"> <div class="col-md-6 mb-3"> <input type="text" name="name" value="<?php echo $row['name'] ?>" id="uname" class="form-control" placeholder="Name" required/> </div> <div class="col-md-6 mb-3"> <!--<input type="tel" class="form-control" name="mobile" maxlength="10" placeholder="Mobile">--> <input type="tel" class="form-control b-0 ps-2" name="number" placeholder="Enter Number" maxlength="10" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" required> </div> <div class="col-md-12 mb-3"> <input type="email" name="email" value="" id="email" class="form-control" placeholder="Email" required/> </div> <div class="col-md-12 mb-3 password pass"> <input type="password" name="password" value="" id="email" class="form-control" placeholder="Password" required/> <i class="fas fa-eye"></i> </div> <div class="col-md-12 Textarea-btn button"> <input class="btn btn-secondary btn-padding btn-dark-animated" type="submit" name="submit" value="Submit"> </div> </div> </form> <?php } } ?> </div> </div> <!--<div class="col-sm-12 col-lg-12 col-md-12 col-padding-y">--> <!-- <div class="contact-map">--> <!-- <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d12330.695150419098!2d-104.8778931128081!3d39.40888565113789!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0000000000000000%3A0xd61cb55fc2964aec!2sOutlets+at+Castle+Rock!5e0!3m2!1sen!2s!4v1460940151482" height="270" allowfullscreen></iframe>--> <!-- </div>--> <!--</div>--> </div> </div> </div> <?php include 'footer.php' ?> </div> <script> const pswrdField = document.querySelector(".needs-validation .password input[type='password']"), toggleIcon = document.querySelector(".needs-validation .password i"); toggleIcon.onclick = () => { if (pswrdField.type === "password") { pswrdField.type = "text"; toggleIcon.classList.add("active"); } else { pswrdField.type = "password"; toggleIcon.classList.remove("active"); } } const pswrdField2 = document.querySelector(".needs-validation .cpass input[type='password']"), toggleIcon2 = document.querySelector(".needs-validation .cpass i"); toggleIcon2.onclick = () => { if (pswrdField2.type === "password") { pswrdField2.type = "text"; toggleIcon2.classList.add("active"); } else { pswrdField2.type = "password"; toggleIcon2.classList.remove("active"); } } // ============= Form Submit============ </script> </body> </html>