Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用php发送经过身份验证的表单?_Php_Forms_Authentication - Fatal编程技术网

如何使用php发送经过身份验证的表单?

如何使用php发送经过身份验证的表单?,php,forms,authentication,Php,Forms,Authentication,“我正在尝试解决此表单的问题,因为所有垃圾邮件都将出现。 有人知道我如何使用相同的表单进行身份验证吗 谢谢任何能帮忙的人 <?php $para = "martins.ago@gmail.com"; $assunto = "Orçamento"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $

“我正在尝试解决此表单的问题,因为所有垃圾邮件都将出现。 有人知道我如何使用相同的表单进行身份验证吗

谢谢任何能帮忙的人

    <?php

    $para = "martins.ago@gmail.com";
    $assunto = "Orçamento";
    $headers = "MIME-Version: 1.0\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\n"; 
    $headers .= "From:Log Materiais <martins.ago@gmail.com>\r\n";
    $headers .= "Reply-To: ".$_POST['razaosocial_nome']." <".$_POST['email'].">\r\n";
    mail("martins.ago@gmail.com",$assunto,$corpo,$headers); 

    mail($_POST['email'],$assunto,$corpo,$headers); 
    unset($_SESSION['Carrinho']['Produto']);
    unset($_SESSION['Carrinho']);
?>
<script>
alert("Seu pedido de orçamento foi enviado, em 24 horas entraremos em contato, aguarde.");
window.location = '../home/index.php?orcamento=Sucesso';
</script>

警觉(“Seu pedido de orçamento foi enviado,em 24 horas entraremos em contato,aguarde.”);
window.location='../home/index.php?orcamento=Sucesso';

使用reCaptcha。有关reCaptcha PHP文档,请参阅。

使用
CAPTCHA
->
reCaptcha
来防止
垃圾邮件。为此你需要