Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- //include("header.php");
- include_once'config.php';
- $email=$_GET['email'];
- $email=base64_decode($_GET['email']);
- if(isset($_POST['submit']))
- {
- $email=base64_decode($_GET['email']);
- //echo $email=decryptString($_GET['email']);
- $_POST['new_pass'];
- $_POST['re_pass'];
- if($_POST['new_pass']==$_POST['re_pass'])
- {
- $updatequery=mysql_query("update tbl_login set password='".$_POST['new_pass']."' where username='".$email."'");
- $updatequery1=mysql_query("update tbl_registration set password='".$_POST['new_pass']."' where email='".$email."'");
- //echo "update tbl_login set password='".$_POST['new_pass']."' where username='".$email."'";
- //echo "update tbl_registration set password='".$_POST['new_pass']."' where email='".$email."'";
- if($updatequery)
- {
- echo '<script type="text/javascript">';
- echo 'alert("Password change successfully.");';
- echo '</script>';
- echo'<script>window.location="signin.php";</script>';
- }
- }
- else
- {
- echo '<script type="text/javascript">';
- echo 'alert("New password not confirmed!!");';
- echo '</script>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement