html button v.s. html submit?

后端 未结 6 1352
南旧
南旧 2020-12-09 19:14

I have an input text box and a search submit button, and when user clicks the Search submit button, I want to redirect user to url http://testsearch/results.aspx?k=<

6条回答
  •  -上瘾入骨i
    2020-12-09 19:43

    If that's the only field in your form, simply set the form's method to "get" and it'll work.

    
    
        

提交回复
热议问题