Skip to content

princezna/p01contact

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/.

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);

About

Create contact forms by writing simple tags

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 81.3%
  • HTML 15.2%
  • CSS 3.5%