|
Email
Subject
Message
该窗体包含必要的文本字段电子邮件,主题,消息和发送按钮。该生产线告诉浏览器的PHP文件将处理的形式和使用什么方法发送data.When用户在填好表格,并点击发送按钮, mail.php文件被称为...
Invalid email address”;
echo “[url=]Back[/url]”;
} elseif ($subject == “”) {
echo “No subject”;
echo “[url=]Back[/url]”;
}
/* Sends the mail and outputs the “Thank you” string if the mail is successfully sent, or the error string
otherwise. */
elseif (mail($email,$subject,$message)) {
echo “Thank you for sending email”;
} else {
echo “Can’t send email to $email”;
}
?>
[/td] [/tr] [/table] |
|