コード例 #1
0
ファイル: settings.php プロジェクト: nandkunal/sustain-brand
<?php

session_start();
//include('authen.php');
require_once 'includes/ADAO.php';
if (isset($_POST['submit'])) {
    $res = ADAO::changePassword($_POST['opwd'], $_POST['npwd']);
    if ($res == 1) {
        $message = "Password Updated Successfully";
    } else {
        $message = "Error!!,Please try Again";
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin-Home</title>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css" />
<script type="text/javascript" src="js/chrome.js"></script>
<script>
function check(frm){
	var error="";
	var ret=true;
if((frm.opwd.value=="")||(frm.npwd.value=="")||(frm.cpwd.value=="")){
	error+="Please fill all the fields\n";
	
}
if(frm.npwd.value!=frm.cpwd.value){