?
Path : /home/yogsadhna/public_html/admin/ |
Current File : /home/yogsadhna/public_html/admin/change.php |
<? include "include/header.php"; if($_POST) { extract($_POST); $result=$obj->query("select * from admin where `password`='$oldPassword'"); $row=$obj->fetch_query($result); if($row->password==$oldPassword) { $obj->query("UPDATE `admin` SET `password` = '$newPassword' where `id`=$row->id"); $mes="Your New password bas been chenged"; } else $mes="Your old password not Matched Please enter old password"; } ?> <link href="style.css" rel="stylesheet" type="text/css"> <table width="100%" border="0" cellspacing="2" cellpadding="3"> <tr> <td width="20%" class="border" valign="top"><? include "include/leftmenu.php" ?></td> <td bgcolor="#e6e4ef" id="welcomenote" valign="top"> <!--mid panel--> <form name="change" action="" method="post" onSubmit="return validationChange();"> <table border="0" cellpadding="5" cellspacing="0" width="80%" id="recored" align="center" class="normaltext"> <tr><td colspan="2" style="font-size:16px; text-align:center;"><strong>Change Password</strong></td></tr> <tr><td colspan="2" id="error" align="center"><?php echo $mes; ?></td></tr> <tr bgcolor="#EEEEEE"><td class="textcap" >Enter the Old Password</td><td><input name="oldPassword" type="password" value="" class="inputbox"/></td></tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"><td class="textcap">Enter the New Password</td><td><input name="newPassword" type="password" value="" class="inputbox"/></td></tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"><td class="textcap">Enter the Confirm Password</td><td><input name="conPassword" type="password" value="" class="inputbox"/></td></tr> <tr><td colspan="2"> </td></tr> <tr bgcolor="#EEEEEE"><td colspan="2" align="center"><input name="submit" type="image" src="images/Change.jpg" value="Change" class="submitbox" /></td></tr> </table> </form> </td> </tr></table> <? include "include/footer.php";?>