My php script for mailing a form is not working

我是研究僧i 提交于 2019-12-02 09:51:10

You probably have PHP errors that you are not seeing, try adding these lines to the top of your php:

error_reporting(E_ALL);
ini_set('display_errors', true);

This code will enable error reporting, which probably will make you see something..

Also, this line: if($_POST['Duvidas'] = "Outras Dúvidas")

is not comparing $_POST['Duvidas'] with "Outras Dúvidas" but is assigning the value "Outras Dúvidas" to $_POST['Duvidas'], which is always true.. Use if($_POST['Duvidas'] == "Outras Dúvidas") instead (note the ==). This might be cause of your problems.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!