------------
first ajax page
---
function makePOSTRequest(url, parameters)
{
if ((url == null) || (parameters == null)) return;
if ((url.length == 0) || (parameters.length == 0)) return;

http_request = false;

if (window.XMLHttpRequest)
{
// Mozilla, Safari,...
http_request = new XMLHttpRequest();

if (http_request.overrideMimeType)
{
// set type accordingly to anticipated content type
http_request.overrideMimeType('text/html');
}
}
else if (window.ActiveXObject)
{
try
{
http_request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) {}
}
}

if (!http_request)
{
alert('Cannot create XMLHTTP instance');
return false;
}
http_request.open('POST', url, true);
http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_request.setRequestHeader("Content-length", parameters.length);
http_request.setRequestHeader("Connection", "close");
http_request.onreadystatechange = alertContents;
http_request.send("parameters");
// parameters: radiobtn=401&choice=blah%20blah&mood=123&url=/root/setup.asp&userid=ajaxASK999

return true;
}

function alertContents() {
if (http_request.readyState == 4)
{
if (http_request.status == 200)
{
result = (http_request.responseText);
document.getElementById('pollResults').innerHTML = result;
// pollResults is the id of span from the form
}
else
{
result = http_request.responseText;
}
}
}

-----------
setup.asp
---
<%
id = request.querystring("userid")
response.write(id)
%>


I'm trying to use ajax to pass a collection of form values to a server page (asp). Update the database and pass the result back from the database.
All seems to be working, except the major problem is this is not passing the parameters to the server page. The request.querystring("userid") is not receiving any data from the ajax code on the first page. What is it that i'm doing wrong?