Значения HTML-формы, добавляющие запятые в Классике ASP

3 ответа

Sounds like you have duplicate form fields. Your values are concatenated together with commas, like this:

<input type="text" name="name1" value="value1">
<input type="text" name="name1" value="value2">
<input type="text" name="name2" value="value3">

Becomes

name1=value1,value2
name2=value3

If the second name1 has no value, it becomes

name1=value1,
name2=value3
16
ответ дан 6 December 2019 в 09:20
поделиться

Do you have multiple form elements on your page with the same name?

In classic ASP, multiple form values with the same name are joined into a comma-separated string in the Request.Form / Request.QueryString collections - so if there's a hidden field or textbox with name="foo" as well as your