You shouldn't post your API key in public.
...........................................
Earlier, every time I followed that link, I got an "Error 404" response, which means that the URL did not point at an actual file.
Today, I am offered a download link for the PHP file.
This would indicate that your web host is not set up to run php - it's just an unrecognized file type, so the server offers a download prompt. This may be the reason your captcha script doesn't work either. Have you
ever had a php script run successfully on your site?
Talk to your web host to see if they support PHP. If they don't, you'd need to find a new host.
Beyond that, your
resource.php file contains no php code. As you posted above, it's all html and javascript - there is nothing at all that can receive and process the form submission. Did you write this yourself, or did you download it or follow an example from somewhere? Do you have a script somewhere that actually handles the form submission?
Bookmarks