1
我對PHP非常陌生,大約2天的經驗。 我的難題是:PHP Sendmail表單返回無結果
我的HTML是:
<div class="form">
<form action="php/sendmail.php" method="post" id="contactwidget">
<div class="inp_r"><input type="text" name="wname" id="wname" value="Name" size="22" tabindex="11" alt="Name" /></div>
</div>
<div class="inp_r"><input type="text" name="wemail" id="wemail" value="Email" size="22" tabindex="12" alt="Email" /></div>
</div>
<table>
<tr>
<td class="text_m"><textarea name="wmessage" id="wmessage" cols="28" rows="6" tabindex="13" title="Quick Message">Quick Message</textarea></td>
<td class="text_r"></td>
</tr>
</table>
<div class="loading"></div>
<div><input type="hidden" name="wcontactemail" id="wcontactemail" value="[email protected]" /></div>
<div><input type="hidden" name="wcontacturl" id="wcontacturl" value="php/sendmail.php" /></div>
<div><a href="#" id="wformsend" class="button" tabindex="14"><span>Send</span></a></div>
</form>
</div>
My php is this:
<?php
$email = $_POST['Email'] ;
$name = $_POST['Name'] ;
$message = $_POST['wmessage'] ;
$headers .= 'From: ' . $from . "\r\n";
mail("[email protected]", "Message from Joshua",
$message, "From: $email");
?>
所有這一切正在恢復與「約書亞消息」
任何想法的電子郵件?
所以你AE沒有得到消息,對不對? –
「name」和「email」的輸入名稱在html中不同 –