Add a simple contact form to dragonee/silverplate.

v0.8.3-beta1 2014-04-16 08:18 UTC


Add a contact form to your PHP Silverplate installation.


Get more information about PHP Silverplate here: https://github.com/dragonee/php-silverplate

This package allows you to enhance your Silverplate instalation by easy to integrate contact form. It's especially useful if you need to create a one-page questionnaire with custom design and are fine with results going to your e-mail inbox.

Getting started

Grab PHP Silverplate from the link above and install it. Then run the following command:

$ php composer.phar require dragonee/silverplate-form:0.8.*

Composer will grab all required dependencies and install them automatically. You can now proceed to developing your e-mail form.

Creating a form

In order to successfully create an e-mail form, you would probably need at least three files.

  • the form page will display the form to be submitted;
  • the e-mail template will be used to send an e-mail back to you;
  • the thank you page is the page where you redirect after the form being successfully submited.

The form page

See https://github.com/dragonee/silverplate-form/blob/master/examples/mail-form.php

The e-mail template

See https://github.com/dragonee/silverplate-form/blob/master/examples/mail-template.php

The thank you page

See https://github.com/dragonee/silverplate-form/blob/master/examples/thank-you.md