Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pinceladasdaweb committed May 29, 2016
1 parent 5929729 commit e4ae509
Showing 1 changed file with 56 additions and 5 deletions.
61 changes: 56 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,63 @@
Simple PHP Contact Form
=======================
# 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.

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.
## Demo

View [demo here](http://www.pinceladasdaweb.com.br/blog/uploads/contact-form/).

## Download

You can download the latest version or checkout all the releases [here](https://github.com/pinceladasdaweb/Simple-PHP-Contact-Form/releases).

## Requirements

* PHP >=5.3

## How to use?

Open the config.php [`config.php`](contact-form/config/config.php) file and fill with your informations.

```php
$emailTo = '<YOUR_EMAIL_HERE>';
<?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'
]
];
```

See the online form [here](http://www.pinceladasdaweb.com.br/blog/uploads/contact-form/).
## Browser Support

![IE](https://github.com/raw/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Chrome](https://github.com/raw/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://github.com/raw/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![Opera](https://github.com/raw/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://github.com/raw/alrra/browser-logos/master/safari/safari_48x48.png)
--- | --- | --- | --- | --- |
IE 8+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |

## Contributing

Check [CONTRIBUTING.md](CONTRIBUTING.md) for more information.

## History

Check [Releases](https://github.com/pinceladasdaweb/Simple-PHP-Contact-Form/releases) for detailed changelog.

## License

[MIT](LICENSE)

0 comments on commit e4ae509

Please sign in to comment.