• Stars
    star
    369
  • Rank 112,277 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Simple Contact Form developed in PHP with HTML5 Form validation.

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.

Containerized with Alpine based container

Using techniques from https://github.com/hardware/rainloop

The container adds ssmtp so you can set up a working config in /etc/ssmtp/ for the outgoing mail.

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 address to receive emails via the form.
        'from' => '' // A valid email address - the domain should be the same as where 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

More Repositories

1

Static-Site-Generators

A definitive list of tools for generating static websites.
577
star
2

Upgrade-your-brain

The definitive list of newsletters to keep up to date on various web development technologies
127
star
3

Ajax-Contact-Form

A simple Ajax Contact Form developed in PHP with HTML5 Form validation and pure JavaScript
JavaScript
90
star
4

Ajax-PHP-MySQL-Newsletter

A simple newsletter sign-up form using Ajax, PHP and MySQL
PHP
78
star
5

imgur

Upload images to imgur via JavaScript
JavaScript
76
star
6

docker-fastify-restful-api

Node.js RESTful API boilerplate using Traefik, Docker, Docker Compose, Fastify, JWT and Mongodb
JavaScript
63
star
7

tweetlight

Display your latest tweets with pure JavaScript and PHP OAuth Library.
JavaScript
47
star
8

mediabox

Responsive Lightbox Plugin for Youtube and Vimeo with Vanilla JS
JavaScript
37
star
9

progress

Page Scroll Reading Progress Indicator
HTML
34
star
10

nodejs-boilerplate

Create Apps with Node.JS + Express 4 and Handlebars.js
Handlebars
32
star
11

Socialight

Get Social Network Share Counts with Vanilla JS
JavaScript
32
star
12

behance

Behance Portfolio Page with Vanilla JS
JavaScript
29
star
13

Twitterbot

A simple twitter bot script written in PHP
PHP
21
star
14

Frontend-Snippets

A set of Front End Snippets for improve your development.
CSS
20
star
15

CSS3-Perspective-Carousel

An awesome carousel developed on top of jQuery with bit of witchcraft of CSS3.
JavaScript
20
star
16

isMobile

Detect Mobile Browsers using pure JavaScript
JavaScript
18
star
17

sticky

Vanilla JS + CSS3 Sticky Header
HTML
17
star
18

It-s-movie-time

Display movies with YTS API and Node.js
JavaScript
15
star
19

social

Simple way to load social sharing buttons
JavaScript
14
star
20

instaphotos

Display Instagram user feed with PHP, jQuery and Handlebars Template
JavaScript
13
star
21

NodeTwitter

Display your latest tweets with Node.js and VanillaJS
JavaScript
13
star
22

Node-CEP

Web service that exposes the search page of the Post Office ZIP code of Brazil as an API
JavaScript
13
star
23

Awesomstar

Awesome (star)rating system with PHP, MySQL and pure JavaScript.
PHP
13
star
24

Vimeo-Carousel-Gallery

Show videos from Vimeo into a chic gallery with jQuery
JavaScript
13
star
25

accordion

Simple Accordion done in Vanilla JS
CSS
12
star
26

Nodegram

Display your latest Instagram photos with Node.js
HTML
12
star
27

node-url-shortener

A modern and lightweight URL shortener using Node.js, Fastify, Postgres and Redis.
JavaScript
11
star
28

VCountdown

Show how many characters remaining in a HTML with pure JavaScript
JavaScript
9
star
29

DynamicMaxHeight

Dynamic max height plugin with CSS animation
HTML
9
star
30

Feeder

A VanillaJS plugin that work like a Feed Reader
JavaScript
9
star
31

minigram

🚀 A simple plugin to display your latest Instagram photos with Vanilla JS
JavaScript
9
star
32

tweetbars

Display your latest tweets with jQuery + Handlebars.js Template
PHP
9
star
33

frontend-starter-kit

A lightweight Front End starter kit for create awesome web apps
JavaScript
8
star
34

fontFlex

Extension for responsive font sizes
JavaScript
8
star
35

GitRepo

Responsive GitHub Repo Widget developed with VanillaJS
CSS
7
star
36

YPlaylist

Youtube Playlist with jQuery
JavaScript
7
star
37

youtubars

Display Youtube user feed with jQuery and Handlebars Template
JavaScript
6
star
38

TiltShift.js

A VanillaJS plugin that uses the CSS3 image filters to replicate the tilt-shift effect.
JavaScript
6
star
39

Lastfm-Recent-Tracks

Get User Recent Tracks in Last.fm with jQuery and Handlebars.
JavaScript
6
star
40

DribbbleFolio

Dribbble Portfolio Page developed with Vanilla JS
JavaScript
6
star
41

ionic-react-graphql

An app with GraphQL SpaceX API, Ionic and React
TypeScript
5
star
42

html5-history-api

Example use of HTML5 API Story
PHP
5
star
43

PHP-CRUD

Simple PHP PDO CRUD
PHP
5
star
44

PHASS

A simple script to compile SASS to CSS automatically with pure PHP.
PHP
4
star
45

FitEmbed

Simple responsive iframes
JavaScript
4
star
46

scroll2Top

Animated scroll with requestAnimationFrame and easing function
JavaScript
4
star
47

Config

Powerful And Easy Configuration with PHP
PHP
3
star
48

Node-RSS

Example of how to create an RSS Feed with Node.js
JavaScript
3
star
49

static

A example to loading basic HTML in NodeJS
CSS
3
star
50

vanillagram

VanillaJS script to apply filters for images similar to Instagram
JavaScript
3
star
51

Coderbits-Widget

Coderbits Widget developed with Vanilla JS
JavaScript
3
star
52

dribbble

Grab Dribbble feed with jQuery and Handlebars
JavaScript
3
star
53

Solitaire

Post updates on Twitter via API
JavaScript
3
star
54

Nodejs-Web-Scraping

Scraping the Web With Node.js
JavaScript
3
star
55

SliderJS

jQuery Slider with CSS Transitions
JavaScript
3
star
56

FlickrJS

Flickr experiments with Vanilla JS
JavaScript
3
star
57

ex_mon

Pokemon API with Elixir and Phoenix
Elixir
2
star
58

learn-angular

Basic examples to learn AngularJS
HTML
2
star
59

jullius

Light weight library to manage JSONP calls using Promises
JavaScript
2
star
60

brasilgram

As últimas fotos do nosso Brasil varonil no Instagr.am
JavaScript
2
star
61

Twitter-analytics

Tracking Twitter Buttons in Google Analytics
JavaScript
2
star
62

YoutubeTV

Experiment with the Youtube API using PHP and JavaScript
JavaScript
2
star
63

ecommerce-realtime

Node.js RESTful API boilerplate using Adonis and PostgreSQL
JavaScript
1
star
64

modal

An extremely simple modal plugin developed with Vanilla JS
JavaScript
1
star
65

learn-react

Basic examples to learn ReactJS
HTML
1
star
66

es6-express

⚡️Express & ES6 Boilerplate
JavaScript
1
star
67

Node-Untappd

Display your latest activity in Untappd with Node.js and jQuery
JavaScript
1
star