12.04.2015, 16:19
(
Последний раз редактировалось ilepopivanov; 12.04.2015 в 18:51.
Причина: fixed
)
I made password recover function in my ucp but I don't know how to setup Mail()
I made this for test but not working
When I enter incorrect email or username it not redirect me but when I enter all correct it redirect me into index.php but mail not send
anyone? sorry for my bed english
EDIT: I fixed that my line is
When I go on localhost/UCP v1/lozinka.php I get this: http://prntscr.com/6sxisg
I made this for test but not working
Код:
if($submit) { if($Username && $Email) { $query = mysql_query("SELECT * FROM `players` WHERE `Username` = '$Username' AND `Email` = '$Email'"); if(mysql_num_rows($query) == 1) { while($row = mysql_fetch_assoc($query)) { $dbUsername = $row['Username']; $dbEmail = $row['Email']; } if($Username == $dbUsername && $Email == $dbEmail) { $message = "Vasata lozinka e";//Your pssword is mail($Email, 'MicroGaming NoReply', $message); header('Location: index.php'); } else echo "<script>alert('Морате да внесете Е-Маил!');</script>";// You must enter E-Mail } } }
anyone? sorry for my bed english
EDIT: I fixed that my line is
PHP код:
mail($Email,'MicroGaming Community','Hello mr.'$Username,'From: admin@mg-game.info');