<?php
require("sesionchk.php");
?>
<!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><?php
require("title.php");
?></title>
</head>
<body>
<?php
require("links.php");
include 'library/config.php';
include 'library/opendb.php';
//$query = "SELECT FirstName,EmailAddress,ID,Notes,imagename FROM contacts where ID=" .$_GET['ID'];
$query = "SELECT `user` FROM cal_accounts where ID=" .$_SESSION['usr_id'];
mysql_query("SET NAMES 'utf8'");
mysql_query('SET CHARACTER SET utf8');
$result = mysql_query($query);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
if ($_GET['showms']=='y')
{
echo "<b>Succesfully Changed Your Password<b><hr>";
}
?>
<form id="form1" name="form1" method="post" action="resaveusr.php">
<table width="50%" border="1">
<tr>
<td>User Name </td>
<td><label>
<?php
echo $row['user'];
//echo "<input type='hidden' name='user_id' value=".$row['user_id'].">";
?>
</label></td>
</tr>
<tr>
<td>Current Password</td>
<td><label>
<input type="password" name="cuser_password" />
</label></td>
</tr>
<tr>
<td>Password</td>
<td><label>
<input type="password" name="user_password" />
</label></td>
</tr>
<tr>
<td>Retype Password </td>
<td><label>
<input type="password" name="reuser_password" />
</label></td>
</tr>
<tr>
<td><label>
<input type="submit" name="Submit" value="Save" />
</label></td>
<td>
</td>
</tr>
</table>
</form>
<!-->>>>>>>>>>>>>>>>>>>>>>>>
Here
>>>>>>>>>>>>>>>>>>>>>>>>
--><br>
<?
include 'library/closedb.php';
?>
<blockquote> </blockquote>
</body>
</html>