<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header  alert alert-info">Change Your Password</h1>
                </div>
                <!--end page header -->
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Enter New Password
                        </div>
                        <div class="panel-body">
                            <div class="row">
   <div class="alert alert-info">Change Your Password Here</div>
   <form name="form1" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Enter Old Password</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputPassword3" name="uname" value=""  placeholder="Old Password" required>
    </div>
  </div>
 <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">Enter Your New Password</label>
    <div class="col-sm-4">
      <input type="password" class="form-control" id="inputPassword3" name="pwd" value="" placeholder="New Password" required>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default" name="s2">Change it</button>
    </div>
  </div>
      <div class="alert alert-success">
      <?php
							if(isset($_POST['s2']))
							{
								extract($_POST);
								$update=mysqli_query($conn, "update customer set pwd='$pwd' where code='$scode'");
								if($update)
								{
									echo "Success";
								}
								else
								{
									echo "Failure";
								}
							}
?>
	  </div>
</form>

					
					
</div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>
