Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7601157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:06:06+00:00 2026-05-30T23:06:06+00:00

During some testing I discovered that on an Apache server form POST arrays needed

  • 0

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.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:06:07+00:00Added an answer on May 30, 2026 at 11:06 pm

    This could be a browser issue. I just tried this code in IE 9 and Chrome.

    <form action="@Url.Action("Index", "Default")" method="post">
     <input type="hidden" name="vals[]" value="1"/>
     <input type="hidden" name="vals[]" value="2"/>
     <input type="submit" name="button" value="Go" />
    </form>
    

    And the controller

        [HttpPost]
        public ActionResult Index(string button, string[] vals)
        {
            return null;
        }
    

    In Chrome, vals was an array of length 1, with the only value being 1

    In IE9, vals was null

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I didn't notice it until today during some testing locally on my pc, that
I notice a strange thing during doing some stored procedures I can explain that
In some my project I notice that during executing unit tests under VSTS2008 its
I have a stackpanel with some usercontrols that are added or removed during runtime.
I have an immutable class with some private fields that are set during the
I m using PHP5 & during testing on IE7 if some thing does no
I am using form authentication inmy ASP.NET 2.0 website. Today during testing i was
This week I've been working on some reflection-based code, and during unit testing found
I've got a client that, during testing, is giving me conflicting information. I don't
I want to introduce a slight wait during some testing functions, to simulate a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.