0 && $_POST['email'] != '') { $sql = "SELECT email, password FROM data_personal WHERE email='".mysql_real_escape_string($_POST['email'])."' LIMIT 1"; $res = mysql_query($sql); $num = @mysql_num_rows($res); if($num) { $row = mysql_fetch_assoc($res); $to = $row['email']; $subject = '['.$this_nama_domain.'] Forget password'; $message = 'Hallo'."\n\n"; $message = 'You get this email because you have forgot your password.'."\n"; $message = 'Below is your login info:'."\n"; $message = 'Email: '.$row['email'].''."\n"; $message = 'Password: '.$row['password'].''."\n"; $headers = 'From: no-reply@'.$this_nama_domain.'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if(@mail($to, $subject, $message, $headers)) { $message = 'Password has been sent to '.$row['email'].' .'; } else { $message = 'Sorry email can\t be sent.'; } } else { $message = 'Email is not registered.'; } } ?> :: Pandawa Karya Citra :: Forget password
 
 
  You have logged in.
To change email/password click here.

'; } else { ?>


Please enter your email in he form below.

EMAIL
Email :