include_once("../config.php"); include_once("$FS_PATH/members/include/templateClass.php"); include_once("$FS_PATH/secure_login12/language/english.php"); $pagetitle=GREATPLACESTOVISIT_TITLE; $metaTitle=''; $metaKeyword=''; $metaDescription=''; $pagejavascript=' function goforForgotValidation() { var dt=document.frm_forgot; if(lTrim(dt.emailaddress.value)=="") { alert("'.LOGIN_ALERT_EMAIL_BLANK.'"); dt.emailaddress.focus(); return false; } else if(!checkValidEmailJS(dt.emailaddress.value)) { alert("'.EMAIL_ADDRESS_INVALID.'"); dt.emailaddress.focus(); dt.emailaddress.select(); return false; } else return true; } '; postvalues(); if(isset($btn_forgot) || trim($btn_forgot)=="SUBMIT") { if(trim($emailaddress)!="") { if($result=DBquery("SELECT firstname,usrname,password,emailaddress FROM ".$GLOBAL_TABLE["gptv_registration"]." WHERE emailaddress='".dbIn($emailaddress)."'")) if($rs=DBfetchArray($result)) { if($emailaddress==$rs["emailaddress"]) { $firstname=$rs["firstname"]; $usrname=$rs["usrname"]; $password=$rs["password"]; include("$FS_PATH/includefiles/emailClass.php"); if(sendPassToUser($emailaddress,stripslashes($firstname),stripslashes($usrname),$password)) header("location:$WS_PATH/members/forgotpassword.php?send=y"); }else $error[]=FORGOT_PASSWORD_EMAIL_NOT_EXIST; }else $error[]=FORGOT_PASSWORD_EMAIL_NOT_EXIST; }else $error[]=LOGIN_ALERT_EMAIL_BLANK; } ob_start(); ?>