A simple Ajax Contact Form developed in PHP with HTML5 Form validation and pure JavaScript
A Simple Ajax Contact Form developed in PHP with HTML5 Form validation and pure JavaScript.
You can download the latest version or checkout all the releases here.
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.',
'validation' => [
'emptyname' => 'Name is required.',
'emptyemail' => 'Email is invalid.',
'emptysubject' => 'Subject is required.',
'emptymessage' => 'Message is required.'
]
],
'fields' => [
'name' => 'Name',
'email' => 'Email',
'phone' => 'Phone',
'subject' => 'Subject',
'message' => 'Message',
'btn-send' => 'Send'
]
];
IE 9+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
Check CONTRIBUTING.md for more information.
Check Releases for detailed changelog.