A Simple Contact Form developed in PHP with HTML5 Form validation.
PHP JavaScript
Latest commit ceb8ea9 Dec 26, 2016 @pinceladasdaweb committed on GitHub Update Readme
Permalink
Failed to load latest commit information.
contact-form Merge branch 'development' Nov 20, 2016
.gitignore contact form vanillajs Sep 11, 2013
CONTRIBUTING.md Added contributing guide May 29, 2016
CONTRIBUTORS.md Uppercase file name Sep 17, 2013
LICENSE Initial commit Sep 7, 2013
README.md Update Readme Dec 26, 2016

README.md

Simple PHP Contact Form

A Simple Contact Form developed in PHP with HTML5 Form validation. Has a fallback in JavaScript for browsers that do not support HTML5 form validation.

Demo

View demo here.

Download

You can download the latest version or checkout all the releases here.

Requirements

  • PHP >=5.4

How to use?

Open the config.php config.php file and fill with your informations.

<?php

return [
    'subject' => [
        'prefix' => '[Contact Form]'
    ],
    'emails' => [
        'to'   => '', // Email to receive emails via the form.
        'from' => '' // A valid email where the domain should be the same when the form is hosted.
    ],
    'messages' => [
        'error'   => 'There was an error sending, please try again later.',
        'success' => 'Your message has been sent successfully.'
    ],
    'fields' => [
        'name'     => 'Name',
        'email'    => 'Email',
        'phone'    => 'Phone',
        'subject'  => 'Subject',
        'message'  => 'Message',
        'btn-send' => 'Send'
    ]
];

Browser Support

IE Chrome Firefox Opera Safari
IE 9+ ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Contributing

Check CONTRIBUTING.md for more information.

History

Check Releases for detailed changelog.

License

MIT