问题 - > 单击发送按钮会在浏览器中打开“send.php”代码,但没有显示成功消息
html代码-
<form action="send.php" name="form1" method="post" id="third1" style="margin-left:15%; margin-top:5%;
border:none">
<!-- Name -->
<label><strong><span class="blue">*</span> Name : </strong></label>
<input id="name" type="text"size="20" />
<br>
<!-- Email -->
<label><strong><span class="blue">*</span> Email : </strong></label>
<input id="email" name="email" type="text" size="20" />
<br>
<!-- Subject -->
<label><strong><span class="blue">*</span> Subject : </strong></label>
<input id="subject" name="subject" type="text" size="20" />
<!-- Message -->
<label for="msg"><strong><span class="blue">*</span> Your message : </strong></label><br />
<textarea id="message" name="message" type="text" class="validate['required']" rows="10"
cols="30"></textarea>
<br /><br />
<input type="submit" class="buttonSubmit" value="Send it!" />
</form>
PHP代码:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$to = "email@yahoo.com";
mail ($to, $subject, $message, "From: " . $name);
echo "Your message has been sent";
?>
请帮我找出解决方案。谢谢。