%@ LANGUAGE = JavaScript %>
<%
if (String(Session("custDetailsReferer")) == "undefined" || String(Session("custDetailsReferer")) == "")
Session("custDetailsReferer") = String(Request.ServerVariables("HTTP_REFERER"));
//@ if ( String(Request.ServerVariables("HTTP_REFERER")).match(/\/Customer\//) == null ) Session("custDetailsReferer") = String(Request.ServerVariables("HTTP_REFERER")) ;
// Find out if this is a new customer.
var CustomerID = Request.Cookies("CustomerID");
if (CustomerID == "" || CustomerID == "0" || CustomerID == 0){
var newCustomer = 1;
}
// Open connection to database
ICSConnection = Server.CreateObject("ADODB.Connection")
ICSConnection.Open(Session("ConnectionString"))
// Open the countries table (input for drop down box)
RSCountryList = ICSConnection.Execute("SELECT * FROM countries ORDER BY Country ASC")
// If the user is not new, open the database and get the customers profile details into a recordset.
if (newCustomer !== 1) {
customerQuery = "SELECT * FROM Customers WHERE CustomerID = " + CustomerID + ";";
var RSCustomer = ICSConnection.Execute(customerQuery);
if (RSCustomer.EOF) Response.redirect("/delcookie.asp");
}
%>
Customer Details
|
| |
<% Response.write(Request.Querystring("msg"));
if ( String(Request.Querystring("msg")) == "Your details have been recovered. ")
Response.write(" Click here to continue to brochure page.") %>
The information that you have entered above is solely for use by ICS
Electronics Ltd. It will not be disclosed to any third parties. |
|
|
If you have any enquiries or
comments about our products or this website, please contact
us.
Copyright © 2001 ICS Electronics Ltd.
|
|
<% ICSConnection.close(); %>