GithubHelp home page GithubHelp logo

vishnuramana / jquery-php-recaptcha-contact-form Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 3 KB

๐Ÿ’Œ A contact us form which uses jQuery, Google reCaptcha and PHP. This uses an ajax call which tells the user the status of the mail being sent. It also writes a log file in the server which helps debug failures.

PHP 32.30% HTML 45.76% JavaScript 21.93%
jquery google-recaptcha php contact-form

jquery-php-recaptcha-contact-form's Introduction

ContactMe

A contact us form which uses jQuery, Google reCaptcha and PHP. This uses an ajax call which tells the user the status of the mail being sent. It also writes a log file in the server which helps debug failures.

How to use:

  1. Edit the index.html file by adding your site key provided by Google reCaptcha here :

    <div class="g-recaptcha" data-sitekey="<site key goes here>" data-callback="onSubmit" data-theme="dark" data-size="invisible">

  2. Edit the form.php file by adding your secret key from Google reCaptcha and then other details such as the to email address.

    $secretKey = "<secret key goes here>";

    $to = '[email protected]';

Note: I was searching for a contact form which used Google reCaptcha and which had an ajax call as well. But I could not find the exact one which let me do it. SO I pieced together parts of code from stackoverflow and created this. Some parts of the code have been submitted by users of StackOverFlow, which I have modified and have used. The credits goes to the original author for those parts (I could not find the answers again, hence could not add the links to them here.).

License:

MIT

jquery-php-recaptcha-contact-form's People

Contributors

vishnuramana avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

annun cyberpay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.