Hocam cevabın için çok teşekkür ederim, ancak maalesef olmadı.
Şu şekilde yazıyorum, nerede yanlışlık var bulamadım, Tekrar çok teşekkür ederim.
<form action="forgotpass.php" method="post">
Kullancı adı: <input type="text" name="affiliatername"/>
<input type="submit" value="New Password" name="sendmepass" class="button"/>
</form>
Zaman
2016-08-14 05:27:54Php Php Arkadaşlar elimde bir script var ve içerisinde forgotpass.php dosyası var ancak forgotpass.html yok. Ben forgotpass.html oluşturdum ancak içerisine bu php kodlarına uygun olarak html kodlarını yazamadım. Yani password tekrar email gönderme için gerekli kodları bulamadım.
HTML de,
<form action="forgotpass.php" method="post" >
<input ... >
Gibi denedim olmadı.
Bu PHP kodlarına göre html e nasıl ve ne yazmam gerekiyor. Şimdiden çok teşekkür ederim.
<?
include("header.php");
$error = $diplay = "";
if(isset($_POST['sendmepass']))
{
$mem_email = $affiliater->GetEmailByUsername($_POST['affiliatername']);
if ($mem_email != "")
{
$newpass = generatePassword();
$affiliater->ReminderPassword($_POST['affiliatername'], $newpass);
//Send mail
$to = $mem_email;
$subject = 'Password Reminder';
$body = str_replace("{USERNAME}", $_POST['affiliatername'], FORGOTMAILDETAIL);
$body = str_replace("{NEWPASSWORD}", $newpass, $body);
$headers = "Content-Type: text/html; charset=iso-8859-1\n";
mail($to, $subject, $body, $headers);
$error = "Your password will be e-mailed to you at the e-mail address you registered with the system! Please check it to recovery your password";
$diplay = "style='display: none;'";
}else
$error = "User inactive or not exists! Please type exactly affiliatername which you used to registry";
}
$template->set_filenames(array("body" => "forgotpass.html"));
$template->assign_vars(array(
'ERROR' => $error,
'DIPLAY' => $diplay,
'USERNAME'=> "Username",
));
$template->pparse("body");
include("footer.php");
?>
Zaman
2016-08-11 08:02:24Php forgotpass.php yardım lütfen.