<% 'Specify your captcha length here, this is the only configuration requirement captchaLength = 5 Function captcha(captchaLength) if captchaLength > 15 then captchaLength = 15 HighestValue = left(100000000000000,captchaLength) lowestValue = left(999999999999999,captchaLength) Randomize intHighestNumber = Int((HighestValue - LowestValue + 1) * Rnd) + LowestValue session("captcha") = Int(intHighestNumber) x = 1 Response.Write vbcrlf & "
" & vbcrlf & vbtab & "" & vbcrlf while x <= captchaLength response.write vbtab & vbtab & "" & vbcrlf x = x + 1 wend Response.Write vbtab & "" & vbcrlf & "
" & vbcrlf End Function if request.form("hSubmit") = "Captcha" then if cstr(request.form("captcha")) = cstr(session("captcha")) then name = Replace(TRIM( Request.Form( "name" ) ),"'","") phone = Replace(TRIM( Request.Form( "phone" ) ),"'","") email = Replace(TRIM( Request.Form( "email" ) ),"'","") message = Replace(TRIM( Request.Form( "message" ) ),"'","") 'question8 = Replace(TRIM( Request.Form( "q14" ) ),"'","") 'question8 = Replace(TRIM( Request.Form( "q15" ) ),"'","") 'question8 = Replace(TRIM( Request.Form( "q16" ) ),"'","") 'question8 = Replace(TRIM( Request.Form( "q17" ) ),"'","") email = Trim( Request.Form( "email" )) Dim oMail Set oMail = CreateObject("cdo.message") oMail.From = "donotreply@MidlandGas.com" 'oMail.ContentType = "text/html;" oMail.To ="info@midlandgas.co.uk" oMail.Subject = "MidlandGas - Online Form Submission" oMail.HTMLBody = "
Hi,

We got following information through an online form submission,

" & _ "" & "" & "
Name:  " & Request.Form("name") & "
" & _ "" & "" & "
Contact No.:  " & Request.Form("phone") & "
" & _ "" & "" & "
E-mail:  " & Request.Form("email") & "
" & _ "" & "" & "
Comments:" & Request.Form("message") & "
" & _ "


Regards
Online Team
" & _ "


Disclaimer: Please do not reply to this message.
" oMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'Name or IP of remote SMTP server oMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") _ ="localhost" 'Server port oMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _ =25 oMail.Configuration.Fields.Update 'Response.Write(sStr) oMail.Send Response.Write("") else sErrMsg = "Please enter correct numbers from the image below" end if end if 'Code for sending mails 'name= Request.Form("name") 'email = Request.Form("email") %>

0121 663 0906

Wolverhampton: 01902 213196
Walsall: 01922 235176
Dudley/Stourbridge: 01384 913526

Emergency Services

If you smell gas, call the National Gas Emergency Service on 0800 111 999. It doesn't matter what time it is, whether it's day or night, they have fully trained staff working 24/7 for this type of emergency. They will ask for some detailed information so that they can get their engineers deployed quickly to the exact location. They will give you advice based on all the details you provide them with, such as turning off the gas from the mains if that is possible for you, avoiding using electrical switches or sockets or naked flames and opening doors and windows to let out any gas buildup.

The National Gas Emergency Service will repair and fix the gas leak completely free of charge if it's found to be external to your property. If the gas leak is internal, the National Gas Emergency Service is only permitted to spend a maximum of 30 minutes locating and repairing the problem. If they are unsuccessful during this time, they may have to shut off all or part of the gas supply. It will then be your responsibility to repair the leak. You can call Midland Gas Engineer on 0121 663 0906.

Emergency Plumbing

When there's a major leak in your home, you will need to locate the stop valve (also called a stop tap or stopcock) and then turn this off. You can then call Midland Gas on 0121 663 0906.

Here's some advice on finding your stop valve:

It's nearly always in a room where water will be used on the ground floor. Usually in a kitchen or bathroom. Also check your garage – if it's attached to the house. They are also found near an outside wall, or a former outside wall if your house has been extended.

Here are just some of the plumbing emergencies we deal with:

  • Leaking pipes
  • Leaking appliances
  • Broken valves
  • Frozen pipes
  • Leaking cistern
  • Broken flush
  • Blocked toilet
  • Blocked sink
  • Plus many more, call Midland Gas now on 0121 663 0906 for gas emergency services.

  • Worcester
  • Vaillant
  • Baxi
  • Alpha
  • Keston

We have called on Midland Gas a few times now. Each time their service is great. Their skills in ensuring that we have the right solution are spot on and consistently high in standard. Great job lads.

Kay Claire