Skip to content
A simple contact form using reCAPTCHA v3 for validation with PHP
Branch: master
Clone or download
Stevie Cotterill
Stevie Cotterill Added extra validation with isset()
Prevents error on page refresh after form submission
Latest commit 127636e Jan 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Added extra validation with isset() Jan 30, 2019
.gitignore Initial commit Nov 3, 2018
LICENSE Initial commit Nov 3, 2018
README.md Initial commit Nov 3, 2018
Vagrantfile Initial commit Nov 3, 2018

README.md

Google reCAPTCHA v3 example

A simple contact form, using Google reCAPTCHA v3 with PHP for server side validation.

Add your Site key from the reCAPTCHA dashboard on lines 9 and 12 of 'public/index.php':

YOUR_RECAPTCHA_SITE_KEY

Add your Secret key from the reCAPTCHA dashboard on line 31 of 'public/index.php':

YOUR_RECAPTCHA_SECRET_KEY

This can be run locally with vagrant up.

You should run the following to install the required Vagrant plugins:

$ vagrant plugin install vagrant-hostmanager

Access the website locally at http://recaptcha.local

The Vagrant box being used is Scotchbox Pro

See blog post here

reCAPTCHA v3 form

You can’t perform that action at this time.