<%@ Language=VBScript %> <% Option Explicit Response.Buffer = true Response.Expires = -1000 Dim JMail, emailmsg, thing, msg %> Reusable Form

To pre-book a tour please complete this form and
we will contact you.

Your e-mail address

Name

Address

Number of Persons

Date of tour

Tour required - please select from list

·

<% ' Amend the Recipient, Subject and redirected page below. if (Request.Form("Submit")) = "Submit Request" then emailmsg = "" for each thing in request.form emailmsg = emailmsg & trim(thing) & ": " & trim(request.form(thing)) & vbcrlf next set msg = Server.CreateOBject( "JMail.Message" ) msg.Logging = true msg.silent = false msg.From = request.form("email") msg.AddRecipient "admin@tartantaxis.com" 'Recipient of emailed form msg.Subject = "Booking Enquiry from Inverness Taxis Website" 'Subject of Email msg.Body = cstr(EmailMsg) msg.Send( "www5.redstation.co.uk" ) 'Change this to www2, www3 etc response.redirect "thankyou.htm" 'address of thank you page end if %>