1

すべてのスパムが来ているため、このフォームで問題を解決しようとしています。この同じフォームを使用して認証する方法を知っている人はいますか?

助けてくれる人に感謝します!

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

1 に答える 1

0

reCaptcha を使用します。reCaptcha PHP ドキュメントについては、 https: //developers.google.com/recaptcha/docs/phpを参照してください。

于 2012-11-23T20:53:04.077 に答える