Jump to content

Php contact form error


Phpnoobza83

Recommended Posts

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

handler (php).PNG

contact (html).PNG

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.