需要确认的联系形式,以显示在同一地方,而不是一个单独的页面


Need confirmation for contact form to show in same place, not a separate page?

例如,如果他们没有输入电子邮件地址,那么这将在窗口中打开,但我需要在相同的窗口中打开它。当前代码:

// 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);

我使用了一个已经集成的联系人表单,这就解决了问题。现在工作得很好!

try with form action $_SERVER['PHP_SELF'] and for error &成功消息,您需要检查同一页面上的验证

相关文章: