1
例如,如果他們沒有輸入電子郵件地址,那麼這會打開一個新的窗口,但我需要它在相同的窗口中。當前代碼:需要確認聯繫表單顯示在同一個地方,而不是一個單獨的頁面?
// Error message displays if email is missing
if (!$from){$errorMes3="ERROR: You didn't enter your email address. "; $error=1; }
而且,成功的消息需要在同一個盒子,然後重定向到同一頁,當前代碼:
// display mail sent message
else {
echo (" <title>SendMail Notice: mail was successfully sent</title><body><br><br><br><br>
<p style=\"font:11pt arial\" align=left>Your message has been successfully sent.
<br><br><i>Thank you</i></p>
</body></html>"); exit(0);