English 中文(简体)
表格GET 删除了目前的URI
原标题:Form GET removes current URI
  • 时间:2012-05-18 23:17:48
  •  标签:
  • php
  • html

我目前拥有一个以(实例)形式过滤我的搜索结果的URI。

search.php?gallery=205&view=listings

这种询问产生了一些结果,因此,我还有产生(实例)的想象力和额外的过滤器。

search.php?sortByType=mostWatched&page=1

我也有一个表格。

<form name="frmFilterResults" id="frmFilterResults" method="get" action="<?php echo($_SERVER[ REQUEST_URI ]); ?>">

我有一个问题,即如果我上面有第一份《世界投资倡议》,然后点击表格过滤器(提交书)纽伦,那么,如果我看上第一份《世界投资倡议》并点击形式过滤器(提交书)或想象器,那么实际上我需要将《世界投资倡议》与第二版合并起来,那么,那么我就像我那样做。

search.php?gallery=205&view=listings&sortByType=mostWatched&page=1

我的所有这些工作都使用了《特别行动计划》的类型,但因为我需要有能力使用第一号浏览器,认为该浏览器会改换为全球教育体系。

最佳回答

利用隐藏的投入来保存全球教育体系的变量,并在提交表格时再次发送。

例:

<input type="hidden" id="gallery" value"<?php if (isset($_GET[ gallery ])) echo $_GET[ gallery ] ?>" />

在此情况下,你提交表格的下一次时间为gallery

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签