During some testing I discovered that on an Apache server form POST arrays needed to be different than those on an IIS server. Eg.
Apache:
<form method="post">
<input type="hidden" name="a[]" value="asd" />
<input type="hidden" name="a[]" value="cvbcv" />
<input type="submit" name="b" value="Submit" />
</form>
IIS using MVC3 Framework:
<form method="post">
<input type="hidden" name="a" value="asd" />
<input type="hidden" name="a" value="cvbcv" />
<input type="submit" name="b" value="Submit" />
</form>
Both give the same result with an array called a of length 2.
At what point during the stack is this evaluated? Webserver, browser, etc.
Note: Using the opposite notation on each server fails to produce the array.
This could be a browser issue. I just tried this code in IE 9 and Chrome.
And the controller
In Chrome, vals was an array of length 1, with the only value being
1In IE9, vals was
null