Alex Rivera | Logout

POST multiple parameters

Asked 2008-10-07T09:57:42.130
13

I am changing a GET to a POST. Currently I have .jsp?id=a,b,c,d. When changing this to a post I am still sitting the id parameter a,b,c,d . This is not working for me. Can I submit a comma separated list to a post parameter?

Edit
Report

1 Answer

1

You can pass more than one parameter by using

        xmlhttp
                .send("files=" + files.value + "&tagcount="
                        + tagcount.value);

Here files and tagcount are the id of the parmeters to be passed. This was working for my Ajax Script. In normal cases you can just add the parameters by &. So the parameters can look like

"parameter1=" + parameter1.value + "&parameter2=" + parameter2.value
answered 2012-01-20T08:27:25.267

Your Answer