TABLE OF CONTENTS › Subscription/Contact Form

Here’s an example subscription / contact form:

<txp:zem_contact to="youremail@yourwebsite.com" >
<txp:zem_contact_text name="zemSubscriberName" label="Your Name:" />
<txp:zem_contact_email name="zemSubscriberEmail" label="Your Email:" />
<txp:zem_contact_textarea label="Enquiry" />
<txp:zem_contact_select list="Subscribe, No" selected="Subscribe" name="zemDoSubscribe" label="Subscribe to the newsletter:" />
<txp:zem_contact_checkbox label="This is not Spam. " />
<txp:zem_contact_submit /> </txp:zem_contact>

This form will:

  • Send a the contact form to whatever email address you enter
  • Display fields for Subscriber Name, Email, and Enquiry, a dropdown choice to subscribe or not and a checkbox that is required as an anti-spam method.
  • If the user leaves the dropdown on “Subscribe,” their email address and name will be entered into the database. If they select “No,” then just the contact form will be sent (and they won’t be subscribed).
NOTE: You can change the text for “No” in the preferences function — see Customizing Admin Preferences for more.

Back to the Table of Contents

Comment

Textile Help

Official Documentation for Postmaster (A Textpattern Plugin)

Get Postmaster

RELATED

REGULARS

DISCLAIMER

Postmaster is a plugin for Textpattern, and is licensed under the GNU GPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licens for more details.