Пример #1
0
<?php

session_start();
$_SESSION['pwd'] = $_POST['pwd'];
include "lib/dataprocess.php";
$dataprocess = new DataProcess();
$dataprocess->settings();
$dataprocess->ChangePassword($_POST['username'], $_POST['pwd']);
header("Location: user.php?msg=Password already updated.");