Sending ID from as3 to asp & geting sql result parameter at the SAME time?

Hi,
I can send a parameter from as3 to asp. And I can get a value from db. But unfortunatelly I cant combine both of them. Is it possible to send a ID parameter from as3 to asp where I want to make a sql query on a db. Then query result will return back to the as3. Users can login with their id number. And they can see their own datas on the as3 application. My sample codes are given:

I can send values with these codes:

var getParams:URLRequest = new URLRequest("http://www***********/data.asp");
getParams.method = URLRequestMethod.POST;
var paras:URLVariables = new URLVariables();
paras.parameter1 = ""+userID;
getParams.data = paras;
var loadPars:URLLoader = new URLLoader(getParams);
loadPars.addEventListener(Event.COMPLETE, loadCompleted);
loadPars.dataFormat = URLLoaderDataFormat.VARIABLES;
loadPars.load(getParams);
function loadCompleted(event:Event):void
{
         trace("sent")
}

I can get values from db with these codes:
var urlLoader:URLLoader =new URLLoader();
urlLoader.load(new URLRequest(“http://www***********/data.asp”));
urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
urlLoader.addEventListener(Event.COMPLETE, onXMLLoad);

function onXMLLoad(event:Event):void
{
	var loader:URLLoader = URLLoader(event.target);
	var scrptVars:URLVariables = new URLVariables(loader.data +"");

	returnParameter= scrptVars.LINK0;
	high.HighScore.text = returnParameter + "";
}

What is the logic of combining them?

Sory for my English level :slight_smile: