<%@LANGUAGE="VBSCRIPT"%> <%option explicit%> <% dim booSubmitted dim booValid booSubmitted = false booValid = false if Request.Form("FormSubmitted") = "FormSubmitted" then ' the form was submitted booSubmitted = true if TestCaptcha("ASPCAPTCHA", Request.Form("captchacode")) then ' the captcha code was valid booValid = true end if end if function TestCaptcha(byval valSession, byval valCaptcha) dim tmpSession valSession = Trim(valSession) valCaptcha = Trim(valCaptcha) if (valSession = vbNullString) or (valCaptcha = vbNullString) then TestCaptcha = false else tmpSession = valSession valSession = Trim(Session(valSession)) Session(tmpSession) = vbNullString if valSession = vbNullString then TestCaptcha = false else valCaptcha = Replace(valCaptcha,"i","I") if StrComp(valSession,valCaptcha,1) = 0 then TestCaptcha = true else TestCaptcha = false end if end if end if end function function SendEmail() dim Message dim objMail Message = Message & "Website Enquiry" Message = Message & "
Insurance Enquiry
" Message = Message & "
 
A website visitor has submitted a Insurance enquiry form:
  
Name:" & Request.Form("contact_name") & "
Company:" & Request.Form("company_name") & "
  
Telephone:" & Request.Form("contact_number") & "
Email:" & Request.Form("email") & "
  
Message: 
" & Request.Form("enquiry") & "
 
" Message = Message & "" Set objMail = Server.CreateObject("CDONTS.Newmail") objMail.From = "enquiries@ipsdirect.com" ' objMail.To = "adam@streamweb.co.uk" objMail.To = "insurance@ipsdirect.com" objMail.Subject = "Website Insurance Enquiry - from " & Request.Form("contact_name") objMail.Body = Message objMail.BodyFormat = 0 ' objMail.MailFormat = 0 objMail.Send Set objMail = Nothing end function %> IPS Direct Landlords Insurance contact details <% ' if the form has been successfully submitted, ' it will display a confirmation message and redirect to the section homepage after 10 seconds if booValid = true then %> <% end if %>


“Just to let you know our claim for landlords insurance was paid out last week... thank you for all your assistance.”

Amjid Ali - Derby

<% ' success - display a confirmation and send an email if booValid = true then %>

Thanks for getting in touch

One of our customer service representatives will contact you within 2 working days.

<% SendEmail else ' either the form hasn't been submitted, or it was submitted with an invalid captcha code - so display the form %>

Contact our Insurance Team

Telephone Us
0844 563 0000
Email Us
insurance@ipsdirect.com
Address
IPS House, 83 London Road, Leicester LE2 0PF
   
  Office opening hours:
  9am-5.30pm Monday-Friday
  10am-2pm Saturday

 

If you would like one of our customer service representatives to contact you directly, please complete the short form below.

<% ' the form was submitted, but the captcha code was invalid if booSubmitted = true and booValid = false then Response.Write("" & vbCrLf) end if %>
Contact Name *  
Company Name  
Telephone Number *  
Email Address *  
How can we help?  
 
  Please enter the security number shown opposite
  Submit  
 ") Response.Write("Security value did not match.") Response.Write("

Sections marked with a * must be completed
<% end if %>
cLooking to Rent? Click for Lettingsc