Change password using javascript, php and mysqli.
<?php session_start(); if(!$_SESSION[‘name’]) {?> <script type=”text/javascript”>window.location.href=’index.php’;</script> <?php } ?> <?php if(isset($_POST[“changepsw”])) { $name = $_SESSION[‘name’]; $oldpsw= $_POST[“oldpsw”]; $newpsw= $_POST[“newpsw”]; $conpsw= $_POST[“conpsw”]; require(“connection.php”); $qry1 = “SELECT * FROM user where name=’$name’;”; … Read More