【问题标题】:how to send form authenticated using php?如何发送使用 php 验证的表单?
【发布时间】:2012-11-23 20:42:12
【问题描述】:

正在尝试处理此表单的问题,因为所有垃圾邮件都来了。 有谁知道我如何使用相同的表单进行身份验证?

感谢任何可以提供帮助的人!

    <?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>

【问题讨论】:

标签: php forms authentication


【解决方案1】:

使用验证码。有关 reCaptcha PHP 文档,请参阅 https://developers.google.com/recaptcha/docs/php

【讨论】:

    猜你喜欢
    • 2016-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-26
    • 1970-01-01
    • 1970-01-01
    • 2018-01-26
    相关资源
    最近更新 更多