HTML form with multiple hidden control elements of the same name

前端 未结 8 2097
-上瘾入骨i
-上瘾入骨i 2020-11-27 06:14

Is it legal to have an HTML form with more than one \"hidden\" control element with the same name? I expect to get the values of all of these elements at the server. If it i

8条回答
  •  被撕碎了的回忆
    2020-11-27 06:37

    If you have something like this:

    
    
    
    

    Your query string is going to turn out looking like x=1&x=2&x=3... Depending on the server software you are using to parse the query string this might not work well.

提交回复
热议问题