Catalogue
This is a demonstration of the Catalogue (or Catalog) request Contacular form type.
The Contacular catalogue request form is one of the more busy form types within Contacular. It prompts the user for their name, telephone number, e-mail and postal address.
<?
$form = new ContacularForm("cataloguerequest"); // Create a new Contacular Form
$form->addRecipient("foobar@contacular.co.uk"); // Add a recipient
if ($form->processResponse($_POST)) // If processed form response,
{
echo "Details sent. Thanks. We will"; // display a relevant message.
echo " ship a catalogue to you within 2-5 days.";
}
else // If response not processed,
{
echo $form->getErrors(); // show any validation errors
echo $form->getCode(); // and output form HTML code.
}
?>
This Contacular form code generates a catalogue request form, which you can see an example of below. It allows you to gather sufficient information about a user to be able to mail them through the postal service to your hearts content.
