Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/
Upload File :
Current File : /home2/wtmwscom/public_html/password_set_model.php

<?php
session_start();
include('connection.php');
include 'function_lib.php';


if(isset($_POST['submit'])){
$password=$_POST['password'];
$uid=$_POST['uid'];
//print_r($_POST);
//echo "uid $uid password $password";
//die;
$token=  uniqid();
$sql = " UPDATE `user` SET `password` ='$password' , `token`='$token' , `status`='0' WHERE uid='$uid' " ;
$is_update = mysql_query($sql);
if($is_update){
    setMessage('you have successfully reset password now do login to get your account ', 'alert-msg success');
    redirect('login.php');
}
}
redirect('index.php');
?>