Skip to content
Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
PHP HTML CSS
Branch: master
Clone or download
Latest commit 160381b Jun 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
p01-contact version nbr 1.1.6 Jun 16, 2019
.gitignore add composer / phpcs & php-compatibility Jun 11, 2018
LICENSE Initial commit Mar 26, 2014
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 add composer / phpcs & php-compatibility Jun 11, 2018

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);
You can’t perform that action at this time.