###FILES INCLUSIONS#### include_once("inc/php/config.php"); include_once("inc/php/openconnection.php"); include_once("inc/classes/database.php"); include_once("inc/classes/franchisee_masterclass.php"); ###FILES INCLUSIONS#### if(isset($_REQUEST[tar]) && $_REQUEST[tar]=="forgotpassword") { $franchisee_ob = new franchisee_masterclass();//INITIATE THE OBJECT FOR THE FRANCHISEE CLASS $franchisee_email = trim($_REQUEST[username]); //$franchisee_pass = trim($_REQUEST[franchisee_pass]); $franchisee_ob->condition = " WHERE franchisee_email = '".$franchisee_email."'"; $franchisee_ob->Reporttype = "allrecord"; $franchisee_res = $franchisee_ob->FetchRecords();//FUNCTION CALLED TO FETCH THE FRANCHISEE DETAIL $franchisee_tot= mysql_num_rows($franchisee_res); if($franchisee_tot > 0) { while($franchisee_data = mysql_fetch_array($franchisee_res)) { $franchisee_email = $franchisee_data[franchisee_email]; $franchisee_pass = $franchisee_data[franchisee_pass]; $franchisee_name = stripslashes($franchisee_data[franchisee_name]); //STORE THE SESSION VARIABLES $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $webmaster_email \r\n"; //-----------------------------FORGOT PASSWORD MAIL FORMAT------------------------- $ebody="
| Hello $franchisee_name, Here is the password you requested. Use this with your email, $franchisee_email, to login. Password: $franchisee_pass |
| include_once ("inc/php/header.php") ?> | |||||||
|
|||||||
| include_once("inc/php/footer.php")?> |