%
' Comersus Shopping Cart
' Comersus Open Technologies
' United States
' Software License can be found at License.txt
' http://www.comersus.com
' Details: modify customer data
%>
<%
on error resume next
dim connTemp, mySql, rsTemp, rsTemp2
pIdCustomer = getSessionVariable("idCustomer",0)
pIdCustomerType = getSessionVariable("idCustomerType",1)
' get settings
pStoreFrontDemoMode = getSettingKey("pStoreFrontDemoMode")
pCurrencySign = getSettingKey("pCurrencySign")
pDecimalSign = getSettingKey("pDecimalSign")
pCompany = getSettingKey("pCompany")
pCompanySlogan = getSettingKey("pCompanySlogan")
pAboutUsLink = getSettingKey("pAboutUsLink")
pDisableState = getSettingKey("pDisableState")
pAuctions = getSettingKey("pAuctions")
pAllowNewCustomer = getSettingKey("pAllowNewCustomer")
pNewsLetter = getSettingKey("pNewsLetter")
pStoreNews = getSettingKey("pStoreNews")
pSuppliersList = getSettingKey("pSuppliersList")
pShowNews = getSettingKey("pShowNews")
pHeaderKeywords = getSettingKey("pHeaderKeywords")
pEncryptionPassword = getSettingKey("pEncryptionPassword")
pEncryptionMethod = getSettingKey("pEncryptionMethod")
pCustomerPrefix = getSettingKey("pCustomerPrefix")
' custom field names
pCustomerFieldName1 = getSettingKey("customerFieldName1")
pCustomerFieldName2 = getSettingKey("customerFieldName2")
pCustomerFieldName3 = getSettingKey("customerFieldName3")
pRedirect = getUserInput(request.querystring("redirect"),20)
' get customer data
mySql="SELECT name, lastName, customerCompany, phone, email, password, address, zip, state, city, stateCode, countryCode, user1, user2, user3 FROM customers WHERE idCustomer=" &pIdCustomer
call getFromDatabase(mySQL, rstemp, "customerModifyForm")
if rstemp.eof then
response.redirect "comersus_supportError.asp?error="&Server.Urlencode("Cannot locate customer information in customerModifyForm")
end if
pStateCode = rstemp("stateCode")
pCountryCode = rstemp("countryCode")
%>
<%=getMsg(171,"Pers Inf")%>