Stop the 'submit' button value from being passed via GET?

佐手、 提交于 2019-12-06 18:35:16

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/9066813/stop-the-submit-button-value-from-being-passed-via-get

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!