停止通过GET传递的“提交”按钮值? [英] Stop the 'submit' button value from being passed via GET?

查看:84
本文介绍了停止通过GET传递的“提交”按钮值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过GET传递表单信息 - 这很重要,这样人们可以将筛选后的数据从表单选择发送给其他人。



问题使用下面的代码,它不仅传递过滤器信息,还提交表单值,如下所示:index.php?month_filter = Feb& year_filter = 12& Submit = Filter + Table p>

 < form name =filter_formaction =<?php echo CURRENT_PAGE?>方法= GET > 
< input name =Submittype =submitclass =buttonvalue =Filter Table>

远景,但有没有办法从URL中删除提交按钮?如果你删除了 name 属性,它将不会被删除。 通过GET / POST传递。


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.

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

<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!

解决方案

If you remove the name attribute, it will not get passed through in GET/POST.

这篇关于停止通过GET传递的“提交”按钮值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆