R
reed.emmons
I have the following select box:
<select name="ddlState" multiple="multiple" size="5">
How would I post the array of values selected using the XMLHttpRequest/
XMLHTTP object? I have the following code:
xmlHttp=GetXmlHttpObject();
xmlHttp.open('POST',url,false);
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-
urlencoded');
xmlHttp.send('ddlState[]=' + document.addWine.ddlState)
One variable is easy but I have no idea how I would do the entire
array.
Thanks!
R
<select name="ddlState" multiple="multiple" size="5">
How would I post the array of values selected using the XMLHttpRequest/
XMLHTTP object? I have the following code:
xmlHttp=GetXmlHttpObject();
xmlHttp.open('POST',url,false);
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-
urlencoded');
xmlHttp.send('ddlState[]=' + document.addWine.ddlState)
One variable is easy but I have no idea how I would do the entire
array.
Thanks!
R