processForm(); $success=$vslform->getSuccess(); $block=$vslform->getBlock(); } class VerifiedSalesLeadsProcessForm { var $success=false; var $block=false; function processForm() { $name=trim(addslashes(stripslashes(strip_tags($_POST['vslname'])))); $mail=trim(addslashes(stripslashes(strip_tags($_POST['vslemail'])))); $phone=trim(addslashes(stripslashes(strip_tags($_POST['vslphone'])))); $postcode=trim(addslashes(stripslashes(strip_tags($_POST['vslpostcode'])))); $company=trim(addslashes(stripslashes(strip_tags($_POST['vslcompany'])))); $jobrole=trim(addslashes(stripslashes(strip_tags($_POST['vsljobrole'])))); $usage=trim(addslashes(stripslashes(strip_tags($_POST['vslusage'])))); $portalframe_span=trim(addslashes(stripslashes(strip_tags($_POST['vslportalframe_span'])))); $portalframe_eaves=trim(addslashes(stripslashes(strip_tags($_POST['vslportalframe_eaves'])))); $monopitch_span=trim(addslashes(stripslashes(strip_tags($_POST['vslmonopitch_span'])))); $monopitch_eaves=trim(addslashes(stripslashes(strip_tags($_POST['vslmonopitch_eaves'])))); $common_length=trim(addslashes(stripslashes(strip_tags($_POST['vslcommon_length'])))); $installation=trim(addslashes(stripslashes(strip_tags($_POST['vslinstallation'])))); $drawing=trim(addslashes(stripslashes(strip_tags($_POST['vsldrawing'])))); $groundwork=trim(addslashes(stripslashes(strip_tags($_POST['vslgroundwork'])))); $options=$_POST['vsloptions']; if(is_array($options)) { $options=implode(", ",$options); } $options=trim(addslashes(stripslashes(strip_tags($options)))); $features=trim(addslashes(stripslashes(strip_tags($_POST['vslfeatures'])))); $vslmessage=trim(addslashes(stripslashes(strip_tags($_POST['vslmessage'])))); //$email="mike@bespoke.co.uk"; $email="saul.dobney@notanant.com"; $email2="saul.dobney@dobney.com"; $subject="Verified Sales Leads - Steel Building quote request"; $host_dom="steelbuildingreview.co.uk"; $today=gmdate("Y-m-d H:i:s"); $msg=" New Verified Sales Leads request for a quote - $today Name: $name Email: $mail Phone: $phone Postcode: $postcode Company: $company Job role: $jobrole --- Usage: $usage Dimensions: Portal Frame Span: $portalframe_span (mm) Portal Frame Eaves: $portalframe_eaves (mm) OR Monopitch Span: $monopitch_span (mm) Monopitch Eaves: $monopitch_eaves (mm) Common length: $common_length --- Installation: $installation Drawing: $drawing Groundword: $groundwork Options requested: $options Plus: $features --- Other information provided: $vslmessage "; if (!isset($_COOKIE['mailblock'])) { mail($email,$subject,$msg, "From: Verified Sales Leads \nReply-To: <$brsbmail>\nReturn-Path: \n"); mail($email2,$subject,$msg, "From: Verified Sales Leads \nReply-To: <$brsbmail>\nReturn-Path: \n"); //ECHO "HERE $email, $subject, $msg"; setcookie('mailblock','timeblocked',time()+1800,'/',''); $this->success=true; $output="

Thank you

Your details have been sent. You should hear from us shortly.

"; } else { $this->block=true; $output="

Whoops. To prevent spam, you will need to wait a couple of minutes before you can send another message.

"; } return($output); } function getSuccess() { return($this->success); } function getBlock() { return($this->block); } } if (!$success&&!$block) { $output="

Step 1 - Your Requirements

1.1 What will you be using your steel building for? *

 

1.2 Dimensions:

Portal Frame

Portal frame for the steel building

Portal Frame Span (mm) mm
Portal Frame Height To Eaves (mm) mm

Mono Pitch

Mono pitch for the steel building

Mono Pitch Span (mm) mm
Mono Pitch Height To Eaves (mm) mm

OR


AND

Length

Steel building length

Length (mm) * mm

Help with building dimensions?

Need to work out your measurements in mm? Use this converter.


1.3 Installation Required?

 

1.4 Do you require help with drawing / planning?

 

1.5 Do you require help with the groundwork?

 

1.6 What extra features do you require?*
Access Doors
Roller Doors
Windows
Rooflights
Insulation
Other (please specify)

 

1.7 Please inform us of any other information that we need to know *

 

Step 2 - Your Details

Your Full Name *

 

Your Email Address *

 

Your Phone Number *

 

Your Post Code *

 

Your Company *

 

Position *

 

"; } ECHO " Get a Steel Building Quote "; ECHO $output; ECHO " "; ?>