Html – POST multiple parameters

htmlhttpjsppost

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?

Best Solution

You can do it like a select form input:

url?param=value1&param=value2&param=value3

Depending on you language and library you should be able to get an array of values for param.


For example with asp.net mvc i do this to get an array of strings:

string[] values = Request.Form.GetValues("param");