"Email","1"=>"Telephone","2"=>"Post"); //Instantiate the HTML_QuickForm object $form = new HTML_QuickForm('apptForm'); //See if they've already submitted the form if ($_POST) { // Try to validate the form if ($form->validate()) { //Send email with submitted info $vals = $form->getSubmitValues(); extract($vals); $address = ($address != '') ? $address : 'No address specified'; $message = ($message != '') ? $message : 'No message specified'; $recip = "info@yewconsulting.co.uk"; $message = "Hello,\n$name from $org submitted a query from the website with the following information\n" . "\nName: ".$name . "\nOrgansiation: ".$org . "\nTown/City: ".$city . "\nTelephone: ".$tel . "\nEmail: ".$email . "\nPreferred contact method: " .$pref_method[$how] . "\nAddress:\n". $address . "\n\nMessage:\n". $message . $subject = "Website query"; $headers = 'From: Yew Consulting '."\r\n" .'Reply-To:info@yewconsulting.co.uk' . "\r\n"; @mail($recip,$subject,$message,$headers); $ms = 1; } } //Define a different layout for the message field $def = "\n\t\n\t\t*
{label}
\n\t\t{error}
\t{element}\n\t"; $send = "\n\t\n\t\t*{label}\n\t\t{error}
\t{element}\n\t"; $colspan = "\n\t\n\n\t\t{error}
\t{element}\n\t"; $req = "\n\t\n\t\t{requiredNote}\n\t"; $renderer =& $form->defaultRenderer(); $renderer->setElementTemplate($def); $renderer->setElementTemplate($colspan, 'message'); $renderer->setElementTemplate($send, ''); $renderer->setRequiredNoteTemplate($req); $form->setDefaults(array('message' => 'Message')); // Add elements to the form $form->addElement('text', 'name', 'Name:', array('size' => 30, 'maxlength' => 255, 'class'=> 'appt')); $form->addElement('text', 'org', 'Organisation:', array('size' => 30, 'maxlength' => 255, 'class'=> 'appt')); $form->addElement('text', 'city', 'Town/City:', array('size' => 30, 'maxlength' => 255, 'class'=> 'appt')); $form->addElement('text', 'tel', 'Telephone:', array('size' => 30, 'maxlength' => 255, 'class'=> 'appt')); $form->addElement('text', 'email', 'Email:', array('size' => 30, 'maxlength' => 255, 'class'=> 'appt')); $form->addElement('select', 'how', 'Contact me by:', $pref_method, array('class'=> 'appt')); $form->addElement('textarea', 'address', 'Address
(if applicable):', array("class"=>"appt","rows"=>"2")); $form->addElement('textarea', 'message', '', array("class"=>"message","rows"=>"2","cols"=>"38")); $form->addElement('hidden', 'stage', ''); $form->addElement('submit', null, 'send', array('class'=> 'appt_sub')); ?> Yew Consulting - Management Consultancy and Research - - Sport Leisure and Cultural
Yew Consulting Ltd
39 Meadway Crescent
Hove, BN3 7NU
Tel/Fax: 01273 208 986
Mobile: 07967 563 140
info@yewconsulting.co.uk

You can email us at info@yewconsulting.co.uk or contact us by completing this form. Whilst we aim to answer all enquiries within two working days, the more specific your enquiry is the quicker we are likely to be able to answer it.

'; $form->display(); } ?>

We take privacy seriously and will never pass on your personal details to any other party.

Information given to us via this site will be handled in strict confidence.