Your IP : 216.73.216.26


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

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

if(empty($_GET['id'])|| empty($_GET['token'])){
    redirect("index.php");
}

$uid=$_GET['id'];
$token=$_GET['token'];

$result=  mysql_query("SELECT login_id, name, email FROM `user` WHERE uid='$uid' AND token='$token'");

//if(isset($_SESSION['userid'])&&!empty($_SESSION['userid'])){redirect('member/index.php');};

?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> 
<!--<![endif]-->
<html lang="en"> 
<head>
  <meta charset="utf-8">
  <link href="imgs/favicon2.ico" type="image/ico" rel="Shortcut Icon">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Set Password</title>
  <link rel="stylesheet" href="css/login.css">
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
  <section class="container">
    <?php //echo getMessage();?>
    <div class="login">
      <h1>Reset Password</h1>
      <?php       
      if(mysql_num_rows($result)>0){
          $row=  mysql_fetch_object($result);
          ?>
      <table>
       
          <tr>
              <td>Name:</td>
              <td><?=$row->name?></td>
              
          </tr>
          <tr>
              <td>Login Id:</td>
              <td><?=$row->login_id?></td>
          </tr>
          <tr>
              <td>Email Id:</td>
              <td><?=$row->email?></td>
          </tr>
          
      </table>
      <br/>
      <form name="form" id="form" method="post" action="password_set_model.php">
          <p>
              <input name="password" id="password" type="password" pattern="\w{6,20}" onchange="form.re_password.pattern = this.value;" required="required" maxlength="20" placeholder="Enter Password" />
              <input name="re_password" id="re_password" type="password" pattern="\w{6,20}" required="required" maxlength="20" placeholder="Re- Enter Password"/>
              <input type="hidden" name="uid" value="<?= $uid ?>"/>
          </p>
          <p class="submit"><input type="submit" name="submit" id="submit" value="Submit"></p>
      </form> 
     <?php }
     else{?>
      <h1>This link has been expired</h1>
    <?php }
?>
     
    </div>
    <div class="login-help">
      <p><a href="login.php">Click here to login</a></p>
    </div>
  </section>
</body>
</html>