Enquiry

This is a demonstration of the Enquiry Contacular form type.

A useful Contacular form type is the 'enquiry' type, which gives you a simple preset form to allow clients and/or potential customers to send you immediate, unintrusive enquiries.

<? 
$form 
= new ContacularForm("enquiry");           // Create a new Contacular Form
$form->addRecipient("foobar@contacular.co.uk");  // Add a recipient
if ($form->processResponse($_POST))              // If processed form response,
{
        echo 
"Thank you for your enquiry.";      // display a 'thanks' message.
}
else                                             
// If response not processed,
{
        echo 
$form->getErrors();                 // show any validation errors
        
echo $form->getCode();                   // and output form HTML code.
}
?>

The simple code above provides you with a fully functional enquiry form, as shown below. This enquiry form will, after submission, validate and then e-mail to the listed recipient. In this case, the non-existant demo e-mail address - 'foobar@contacular.co.uk'.

Powered by Contacular