简体   繁体   English

使用get方法的表单不再发布到操作网址

[英]Form with get method no longer posting to action url

My form no longer posts to the action url. 我的表单不再发布到操作网址。 Here is the html code: 这是html代码:

<form method="get" action="/search-results/">
    <input type="text" placeholder="Search" name="q">
    <input type="submit" value="Search">
</form>

Why isn't the form posting? 为什么不发布表单?

该HTML看起来正确,因此您可能拥有一些阻止默认表单提交的JavaScript。

<input type="submit" value="Search">
<input type="submit" name="submit" value="Search"> 

try this let me know give some code for problem you may past ... 尝试此操作让我知道为您可能遇到的问题提供一些代码...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM