For the love of god somebody please help me execute a proper PHP form vaildator with included Google’s new recaptcha (the checkbox version).
I have been spending so much time trying to figure it out. I currently have a contact form with many fields. I have a basic form-handler.php file that is called when the user submits and everything works great - the user hits submit, it redirects them to a thankyou page and I get an email outlining the details of the fields filled out in the form.
The problem is spam - alot of it unfortunately. I want to implement the recaptcha, and I can get it to display in my form no problem - but I cannot figure out how to validate the form entries (ie) email etc. and the recaptcha, then redirect to my thank-you page all at once.
I need to totally rewrite my php to do everything - because right now I am simply ‘trying’ to modify my existing form-handler-php and failing miserably.
This is my first post here, I hope someone can help walk me through it.
Here is my contact page with form:
[code]
Contact Information
Company Name
First Name
Last Name
Phone
Street Address
City
Province/State
Country
Project Information
Location
System Size
PV Type: *
Residential
Commercial
Agricultural
Net-Metering
Off-Grid
Message:
Send
[/code]
I hope I’m not asking too much. Any help would be greatly appreciated.