Advertisement
Guest User

Untitled

a guest
May 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. //include("header.php");
  4. include_once'config.php';
  5.  
  6. $email=$_GET['email'];
  7. $email=base64_decode($_GET['email']);
  8.  
  9. if(isset($_POST['submit']))
  10. {
  11. $email=base64_decode($_GET['email']);
  12. //echo $email=decryptString($_GET['email']);
  13. $_POST['new_pass'];
  14. $_POST['re_pass'];
  15. if($_POST['new_pass']==$_POST['re_pass'])
  16. {
  17. $updatequery=mysql_query("update tbl_login set password='".$_POST['new_pass']."' where username='".$email."'");
  18. $updatequery1=mysql_query("update tbl_registration set password='".$_POST['new_pass']."' where email='".$email."'");
  19.  
  20. //echo "update tbl_login set password='".$_POST['new_pass']."' where username='".$email."'";
  21. //echo "update tbl_registration set password='".$_POST['new_pass']."' where email='".$email."'";
  22. if($updatequery)
  23. {
  24. echo '<script type="text/javascript">';
  25. echo 'alert("Password change successfully.");';
  26. echo '</script>';
  27. echo'<script>window.location="signin.php";</script>';
  28.  
  29. }
  30. }
  31. else
  32. {
  33. echo '<script type="text/javascript">';
  34. echo 'alert("New password not confirmed!!");';
  35.  
  36. echo '</script>';
  37. }
  38.  
  39.  
  40. }
  41.  
  42.  
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement