Click Here to Verify Your Email"; ob_start(); include("./mailTemplate.php"); $mailTemplate = ob_get_contents(); ob_clean(); $sqlSC = " select * from tbl_mail where mailId = '1' "; $resSC = executeQuery($sqlSC); if($rowSC = mysql_fetch_array($resSC)) { $subject= $rowSC['subject']; $content= $rowSC['content']; $mailContent=$content.""; $mailContent = str_replace("",$agentName,$mailContent); $mailContent = str_replace("",$email,$mailContent); $mailBody = str_replace("",$password,$mailContent); $mailBody = str_replace("",$linkconfirm,$mailContent); $mailBody = nl2br($mailBody); $mailBody = str_replace("",$mailBody,$mailTemplate); send_mail($email,$subject,$mailBody,$rowSC['email'],$rowSC['fromText'],$html=true); } $_SESSION['sessMsg'] = "Thank you for registering. A verification email has been sent to your email address. Please check your email for further instructions."; header("location:login.php"); exit(); } } } if($agentId) { $sqlQr="select * from tbl_agent where agentId='$agentId'"; $result=executeQuery($sqlQr); $row=mysql_fetch_array($result); extract($row); } include_once('header.inc.php');?> if(empty($agentId)) {?>Register } else {?> Update Profile }?> Required Fields * Title * //getCombo($arrName=$arrayTitle,$comboName='title',$class='txtfield-1',$selectedValue=$title,$extra='')?> Name* Email Address * Password * Company Name * URL Phone* Address * =$address?> Image if($imagePath) {?> }?> include_once('right.inc.php');?> include_once('footer.inc.php');?>