Support Database

Search Support Database:


Subject:Sample Code: ASP - Create Account Remotely
Category:
Keywords:asp, active server pages
  
Article:The following ASP function can be used for remote interaction with the SoftLocker.net servers.

You can find your Customer ID (cust_id) and PIN (cust_pin) on your My Account page.

Your Product ID (prod_id) is located in the left hand column of the Products list in the SoftLocker client.

Email (email) is the username you want to register, we recommend using the customer's email address but this can be any value you wish.

Transaction Numbers (txn) should be unique and are recommended in order to make remote changes to user accounts.

Quantity (qty) can be any number from 1 to 100.

<%
function createAccount(cust_id, cust_pin, prod_id, email, txn, quantity)
dim xmlhttp
dim strRet
dim a
dim myURL

if quantity = "" then
quantity = 1
end if

myURL = "http://www.softlocker.net/LDEA.asp?c=" & cust_id & "&p=" & cust_pin & "&s=" & prod_id & "&q=" & quantity & "&l=we7iBy&ex=0&e=1&b=1&m=0&sn=0&ar=1&r=db&as=0&txn=" & txn & "&email=" & email
'response.write(myURL)

set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.setTimeouts 5000, 60000, 10000, 10000
xmlhttp.open "GET", myURL, false
xmlhttp.send ""
strRet = xmlhttp.responseText
set xmlhttp = nothing
end function
%>




Home - SoftLocker.net Client - SoftLocker ListBuilder - Tutorials - Support - Privacy - Affiliates





© 2009-2010 SoftLocker.net