Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
p01-contact fix #41 use no-reply@server as from header Jan 27, 2019
.gitignore
LICENSE
README.md indicate php version compatibility Jun 11, 2018
composer.json add composer / phpcs & php-compatibility Jun 11, 2018
composer.lock add composer / phpcs & php-compatibility Jun 11, 2018
p01-contact_gs.php add support of forms, debug report and admin panel in Pico CMS themes… Oct 22, 2017
phpcs.xml

README.md

p01contact

Create contact forms by writing simple tags.

Installation

Download the files.

For GetSimple CMS, place the p01-contact directory and the file p01-contact_gs.php in plugins/.

For Pico CMS, place the p01-contact directory in plugins/ and rename-it PicoContact.

Compatibility : PHP 5.4+

Usage as a plugin

Just write tags in your pages.

This is a default contact form :

(% contact %)

Simple.

Follow the syntax to create custom forms.

(% contact en :
    subject => A locked subject,
    radio "I'd like to contact you" = a little | a lot |: passionately,
    select "Department" (the floor you look for) = Silly walks :| Strange things,
    email!,
    message =< Bla bla placeholder,
    checkbox! "I'm in control",
    askcopy
%)

Details about usage as a plugin can be found in the wiki :

Usage as a PHP script

The simplest method is to include the script, create a new instance and parse strings containing tags using the syntax.

include 'p01-contact/P01contact.php';

$p01contact = new P01contact();

$content = 'This is a default contact form : (% contact %)'
$content = $p01contact->parse($content);