array("type"=>"Name"), "cname"=>array("required"=>false,"type"=>"Company"), // note only need when a field is NOT req "email"=>array("type"=>"Email"), "message"=>array("type"=>"Message") ) ); $email->processMail("antony@bigblackbook.co.uk", "allincludes/emails/contact.php", $_POST['email'], "Email message from {$_POST['name']}", "Thank you for contacting us. We will be in touch shortly.", "Contact us"); exit; } else { setcookie("antispam","avoids_spiders!",time()+600); } $title = "Get a copy of the Big Black Book"; $content = "contact.html"; include("templates/new.html"); ?>