excellent code. good job..
excellent code. good job..
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
<?php include("includes/header.php"); $page_title="changepassword"; include('connection.php'); $rId = $_POST['submitted']; if(($_POST['newpassword']) == ($_POST['conpassword'])){ $password = $_POST['change']; $npassword = $_POST['newpassword']; $cpassword = $_POST['conpassword']; $old_pass = $row['Pass']; if($old_pass == $password){ if($subquery){ $update= "your password has been change successfully<br/>from ".$password." to ".$npassword; } else{ echo "update is not ok "; } } else{ } } } else{ $update = "your password do not match"; } } ?> <h1 style="font-size:50px; text-align:center; color:green;" id="sub1">A.B.U</h1> <p style="font-size:20px; text-align:center; color:green;">Change your password here</p> <h4 align="center"> </h4> <form action="rchange_password.php" method="POST"> <div align="center"> <h4 style="color:green"> <?php echo $update; } ?> </h4> <input type="password" required name="change" size="30" placeholder="Old password" ></br></br> <input type="password" required name="newpassword" size="25" placeholder="New password" ></br></br> <input type="password" required name="conpassword" size="25" placeholder="Confirm password" ></br></br> <p><input id="sub" type="submit" value="Send"> <a class="ancor" href="user_activities.php?rId=<?php if(isset($_GET['id'])){ echo ($_GET['id']);} ?>"><input type="button" value="click back" id="sub"></a></p> <input type="hidden" name="submitted" value = "<?php if(isset($_GET['id'])){ echo base64_decode($_GET['id']);} ?>" /> </div> </form> <br> <br> <br> <br> <br> <?php include("includes/footer.php"); ?> </body> </html>