View file File name : resetpass.php Content :<?php session_start(); include("../include/config.php"); include("../include/functions.php"); validate_admin(); if($_REQUEST['id']!=''){ $obj->query("update $tbl_admin set password='myvalue@123' where id='".$_REQUEST['id']."'"); $_SESSION['sess_msg']="Password reset successfully.!"; } header("location:".$_SERVER['HTTP_REFERER']); exit(); ?>