|
1 |
| -Simple PHP Contact Form |
2 |
| -======================= |
| 1 | +# Simple PHP Contact Form |
3 | 2 |
|
4 | 3 | 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.
|
5 | 4 |
|
6 |
| -Were developed two forms of form validation, one using jQuery and the other with pure JavaScript. The PHP code for both is the same. choose your and do not forget to change the PHP script where the email should be sent. |
| 5 | +## Demo |
| 6 | + |
| 7 | +View [demo here](http://www.pinceladasdaweb.com.br/blog/uploads/contact-form/). |
| 8 | + |
| 9 | +## Download |
| 10 | + |
| 11 | +You can download the latest version or checkout all the releases [here](https://github.com/pinceladasdaweb/Simple-PHP-Contact-Form/releases). |
| 12 | + |
| 13 | +## Requirements |
| 14 | + |
| 15 | +* PHP >=5.3 |
| 16 | + |
| 17 | +## How to use? |
| 18 | + |
| 19 | +Open the config.php [`config.php`](contact-form/config/config.php) file and fill with your informations. |
7 | 20 |
|
8 | 21 | ```php
|
9 |
| -$emailTo = '<YOUR_EMAIL_HERE>'; |
| 22 | +<?php |
| 23 | + |
| 24 | +return [ |
| 25 | + 'subject' => [ |
| 26 | + 'prefix' => '[Contact Form]' |
| 27 | + ], |
| 28 | + 'emails' => [ |
| 29 | + 'to' => '', // Email to receive emails via the form. |
| 30 | + 'from' => '' // A valid email where the domain should be the same when the form is hosted. |
| 31 | + ], |
| 32 | + 'messages' => [ |
| 33 | + 'error' => 'There was an error sending, please try again later.', |
| 34 | + 'success' => 'Your message has been sent successfully.' |
| 35 | + ], |
| 36 | + 'fields' => [ |
| 37 | + 'name' => 'Name', |
| 38 | + 'email' => 'Email', |
| 39 | + 'phone' => 'Phone', |
| 40 | + 'subject' => 'Subject', |
| 41 | + 'message' => 'Message', |
| 42 | + 'btn-send' => 'Send' |
| 43 | + ] |
| 44 | +]; |
10 | 45 | ```
|
11 | 46 |
|
12 |
| -See the online form [here](http://www.pinceladasdaweb.com.br/blog/uploads/contact-form/). |
| 47 | +## Browser Support |
| 48 | + |
| 49 | + |  |  |  |  |
| 50 | +--- | --- | --- | --- | --- | |
| 51 | +IE 8+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | |
| 52 | + |
| 53 | +## Contributing |
| 54 | + |
| 55 | +Check [CONTRIBUTING.md](CONTRIBUTING.md) for more information. |
| 56 | + |
| 57 | +## History |
| 58 | + |
| 59 | +Check [Releases](https://github.com/pinceladasdaweb/Simple-PHP-Contact-Form/releases) for detailed changelog. |
| 60 | + |
| 61 | +## License |
| 62 | + |
| 63 | +[MIT](LICENSE) |
0 commit comments