Form action doesn't submit hard-coded variable

后端 未结 3 1032
南笙
南笙 2021-01-26 15:51

I have a form with the code below, which sends form option choice as \"project\" variable.

3条回答
  •  抹茶落季
    2021-01-26 16:05

    When using GET as method all query params in the action attribute are discarded and the items in the form are used instead, either change to POST instead of GET or add a hidden field with the name 'str' and value 'aaa' to achieve what your are trying to do.

提交回复
热议问题