在我的应用程序中,我使用后端代码作为perl和使用jquery mobile的前端开发。当我使用变量x = 10 y = 20在jqm页面上提交表单时,在查询字符串中,而不是替换像jqm.com/?x=10 & y = 20这样的参数,我将其添加为 jqm.com/ id = 1000 & x = 10 & y = 20。我再次改变我的价值观,并提交形式我得到
jqm.com/?id=1000 & X = 10 & Y = 20 & ID = 1000 & X = NEWVALUE & Y = NEWVALUEjquery移动查询字符串参数
0
A
回答
0
你有这样的问题,因为您尚未在表单中指定action
属性。因此,默认情况下,它会将数据发送到页面本身,因此您每次都将参数添加到当前页面的url中。
为了解决这个问题,只需添加action
属性,如下面的例子:
<form action="a-page-to-send.php" method="post">
<!-- code goes here -->
</form>
相关问题
- 1. MySQL查询参数字符串数组
- 2. SQL查询字符串参数C#
- 3. cloudfront psudostreaming查询字符串参数
- 4. 改变查询字符串参数/值
- 5. .htaccess双查询字符串参数
- 6. 使用html.encode查询字符串参数
- 7. ASP.NET System.Web.Routing和查询字符串参数
- 8. Django和查询字符串参数
- 9. 传递GET参数查询字符串
- 10. PostbackUrl和查询字符串参数
- 11. 查询字符串值为xsl参数
- 12. php查询字符串参数
- 13. urlencode所有查询字符串参数
- 14. 微风查询字符串参数
- 15. FormMethod.Get和查询字符串参数
- 16. 在查询字符串参数
- 17. 查询字符串参数混淆
- 18. 通过查询字符串参数
- 19. 删除查询字符串参数
- 20. 查询字符串参数丢失
- 21. PHP查询字符串 - 参数复制
- 22. 隐藏查询字符串参数
- 23. 变化的查询字符串参数
- 24. 查询字符串参数错误
- 25. Request.URL双查询字符串参数?
- 26. web api空查询字符串参数
- 27. 构建多参数查询字符串
- 28. 约定的查询字符串参数
- 29. Owin获取查询字符串参数
- 30. VB.NET查询字符串有参数
你叫什么形式的行动? –
我没有任何行动 – monal86