且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

网站联系表格不发送电子邮件

更新时间:2023-02-25 09:52:53

从我发布的代码中我看到的PHP邮件脚本将无法正常工作,因为您正在检查是否存在名称为submit的POST变量,而不是以您的形式提交按钮没有name属性。
尝试给提交按钮一个名称,并将该名称放在PHP if语句中。

From what i see in the code you posted, the PHP mailing script won't work as you are checking if a POST variable with the name 'submit' exists which it does not as in your form the submit button does not have a name attribute. Try giving the submit button a name and put that name in the PHP if statement.