Html – POST multiple parameters


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:


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

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

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