Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design Need help with PHP Email service and reCAPTCHA v3

  • Need help with PHP Email service and reCAPTCHA v3

    updated 2 years, 12 months ago 0 Member · 1 Post
  • Maverick

    Member
    September 28, 2019 at 2:32 pm

    I want to make an Email service for my website and use reCAPTCHA v3 to avoid spam, followed the example here and altered it like this if($responseKeys[“success”]) { mail(“my@mail.com”, “Mail from my website: “, $comment, “From: “.$email); /* ‘true’)); everything works fine, except for the fact that both $comment and $email seem to be null. Now I am an absolute PHP beginner, so I don’t see why $email = filter_input(INPUT_POST, ’email’, FILTER_VALIDATE_EMAIL); should set $email to null (w3school says that only happens when email is not found in $_POST, but email is clearly set, (right?)) What am I missing? How can I get both the $email and $comment values after checking for spammers? – by hq overview Joe16_ – –

Viewing 1 of 1 replies
Reply to: Maverick
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now