Example #1
0
<?php

include_once 'classes/database.php';
if (empty($_SESSION['logged_in'])) {
    header('location:index.php');
}
$flag = false;
if (isset($_POST['btn_change_password'])) {
    $db = new Database();
    $info = array('old_password' => $_POST['old_password'], 'new_password' => $_POST['new_password'], 'confirm_password' => $_POST['confirm_password']);
    $response = $db->changepassword($info);
    $flag = true;
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Chanchal Garments</title>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="assets/css/animate.css" rel="stylesheet">
    <link href="assets/css/jquery.gritter.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <link href="assets/css/custom.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">