PHP联系表格不起作用(boostrap)

时间:2017-06-04 22:25:27

标签: php forms twitter-bootstrap contact

我尝试了其他3个联系表单,但没有工作,所以我下载了这个模板https://startbootstrap.com/template-overviews/freelancer/这是一个boostrap模板+联系表单,我只用一次编辑就将它上传到服务器上,我更改了这一行: / p>

$to = 'myemail@gmail.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.

它不起作用。 然后我在contact_me.php所在的文件夹中找到了这个文件 eror_log

[04-Jun-2017 22:17:29 UTC] PHP Warning:  mail() has been disabled for security reasons in /home/myname/public_html/startbootstrap-freelancer-gh-pages/mail/contact_me.php on line 24

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

如果你检查你的php.ini,你可以看到disable_functions的设置。可以在此处设置此项,您可以对其进行编辑以启用。