form action=“?login” : What does the question mark mean?

前端 未结 2 1849
梦谈多话
梦谈多话 2020-12-18 13:49

I usually see the action refer to a

相关标签:
2条回答
  • 2020-12-18 14:25

    a question mark denotes the query string. It will post to the current url with a query string parameter of login. I am not sure how you are processing the request after you click submit(post the form) but usually it would have a value assigned to it as in login=value

    0 讨论(0)
  • 2020-12-18 14:25

    It means:

    http://whatever/the-current-page-url-is?login (where "login" is the query string).

    It is a relative-URI notation, similar to <img src="foo.jpg"> -- note the rest of the URI was not specified explicitly.

    Happy coding

    0 讨论(0)
提交回复
热议问题