% Response.Redirect("https://support.exampro.co.uk/support/tickets/new") %>
<% page = "support" %>
<%
SC = request("SC")
givethanks = 0
errFlag = 0
%>
<%
clicked = request("clicked")
if clicked = "1" then
name = validate(request("name"))
position = validate(request("position"))
school = validate(request("school"))
address = validate(request("address"))
postcode = validate(request("postcode"))
email = validate(request("email"))
telephone = validate(request("telephone"))
comment = validate(request("comment"))
family = validate(request("fam"))
dfes = validate(request("dfes"))
'-------begin validation
if len(name) < 2 then
errflag = 1
errText = "Name is required." & "
"
end if
if len(school) < 2 then
errflag = 1
errText = errText & "Centre name is required. " & "
"
end if
if len(email) < 5 AND len(telephone) < 5 then
errflag = 1
errText = errText & "Email is required." & "
"
end if
if len(email) > 0 AND (InStr(email,".") = 0 OR InStr(email,"@") = 0) then
errflag = 1
errText = errText & "Invalid email address." & "
"
end if
if len(comment) < 2 then
errflag = 1
errText = errtext & "A comment is required." & "
"
end if
if len(family) < 3 then
errflag = 1
errText = errText & "Please select a product family." & "
"
end if
if len(Position) < 2 then
errflag = 1
errtext = errtext & "Please include your position."
end if
'------end validation
'------if validated, save in the database
if errFlag = 0 then
'make the vars database friendly
nameF = LEFT(replace(name,"'","''"),50)
positionF = LEFT(replace(position,"'","''"),50)
schoolF = LEFT(replace(school,"'","''"),150)
addressF = LEFT(replace(address,"'","''"),150)
postcodeF = LEFT(replace(postcode,"'","''"),20)
emailF = LEFT(replace(email,"'","''"),150)
telephoneF = LEFT(replace(telephone,"'","''"),50)
commentF = LEFT(replace(comment,"'","''"),1000)
ipaddressF = LEFT(Request.ServerVariables("REMOTE_ADDR"),50)
browserF = LEFT(replace(Request.ServerVariables("HTTP_USER_AGENT"),"'","''"),200)
MYSQL = "EXEC ADDContact @name='" & nameF & "',@position='" & positionF & "',"
MYSQL = MYSQL & "@school='" & schoolF & "',@address='" & addressF & "',"
MYSQL = MYSQL & "@postcode='" & postcodeF & "',@email='" & emailF & "',"
MYSQL = MYSQL & "@telephone='" & telephoneF & "',@comment='" & commentF & "',"
MYSQL = MYSQL & "@ipaddress='" & ipaddressF & "',@browser='" & browserF & "',@site='" & session("site") & "',@contactType=1,"
MYSQL = MYSQL & "@dfes='" & dfes & "',@family='" & family & "' "
rs.Open MYSQL, DataConn
res=rs("res")
rs.Close
givethanks = 1
end if
end if
%>
New address:
Exampro
PO Box 68318
London
NW1 2SD
We cannot give login or
licence details over the phone
Tel: 0345 145 1500
If you forgot your Account Manager login details, use the form on the right to submit your request.
<< search again |