I'm trying to pass form information via GET - this is important so that people can send the filtered data from their form selections to other people.
我正在尝试通过GET传递表单信息 - 这很重要,以便人们可以将过滤后的数据从表单选择发送给其他人。
The problem is, using the code below, it not only passes the filter information, but also the submit form value like so: index.php?month_filter=Feb&year_filter=12&Submit=Filter+Table
问题是,使用下面的代码,它不仅传递过滤器信息,还传递提交表单值,如下所示:index.php?month_filter = Feb&year_filter = 12&Submit = Filter + Table
<form name="filter_form" action="<?php echo CURRENT_PAGE ?>" method="get">
<input name="Submit" type="submit" class="button" value="Filter Table">
Long shot, but is there a way to remove the submit button from the URL? Thanks!
远射,但是有没有办法从URL中删除提交按钮?谢谢!
1 个解决方案
#1
26
If you remove the name
attribute, it will not get passed through in GET/POST.
如果删除name属性,它将不会在GET / POST中传递。
#1
26
If you remove the name
attribute, it will not get passed through in GET/POST.
如果删除name属性,它将不会在GET / POST中传递。