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