Phpnoobza83 Posted February 5, 2021 Share Posted February 5, 2021 Hi Guys I really hope that someone can help me with Php and Html5 problem. So I started creating my first website (using templates as examples), but with the contact form there my real problem. Ive followed few tutorials and checked everything and code looks right, but for some weird reason I cant receive any emails. Im very new to html5 and php and not really going to use it that offen, just this once for my new business website. Whould really appricate it if someone can have a look and give me some pointers on where I went wrong Attached your find the contact.html & php file Thanks Quote Link to comment https://forums.phpfreaks.com/topic/312098-php-contact-form-error/ Share on other sites More sharing options...
Barand Posted February 5, 2021 Share Posted February 5, 2021 Thanks for those beautiful code images. Perhaps I'll hang them on my wall. They're no use for anything alse. Quote Link to comment https://forums.phpfreaks.com/topic/312098-php-contact-form-error/#findComment-1584241 Share on other sites More sharing options...
requinix Posted February 5, 2021 Share Posted February 5, 2021 And you're saying that it's specifically a reCAPTCHA problem, right? According to the code, $url = "https://www.google.com/recaptcha/api/siteverify secret =$secretKey&response=$responseKey&remoteip=$UserIP"; the URL you're trying to retrieve is https://www.google.com/recaptcha/api/siteverify%0D%20%20%20%20secret%20=(key)&response=(value)&remoteip=(ip) Does that look like a good URL to you? Those %s represent the line break (because your $url string spans multiple lines) and spaces (because there are spaces in the string) and really, really need to not be there. With that out of the way, 1. You've posted your secret key on a public website. You can safely assume that it has now been compromised. Deactivate that key immediately and get a new one. 2. Screenshots of code are nice but posting the actual code is better. Because I had to type out that $url thing earlier. Please don't make me do that again. When you're writing a post, use the Code <> button and its popup to insert the code into your post. Quote Link to comment https://forums.phpfreaks.com/topic/312098-php-contact-form-error/#findComment-1584242 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.