English 中文(简体)
员额与类型联系
原标题:Form Post and sort links
  • 时间:2011-11-04 14:59:30
  •  标签:
  • php
  • html

I have a form that submits with POST For the user to sort the results, there are a few links.

But if I use classic link I will lose the POST info from the previous search What would be the best way to handle this?

Thx Chris

最佳回答

将POST储存在以下表格中:

或者,你可以使用纯粹的客户圈子,在浏览器中确定结果。

如果可以公开查阅,提交表格不会改变任何数据,我建议你使用通用公平市。

问题回答

如果不加以规范,就很难说。 它使用户等用户能够进入搜索期,并放到能够调整结果的网页上。 重新排序是通过员额进行的,然后,你想在完成后将用户送回其搜索结果网页。 这是否正确?

你可以把搜索术语列入所公布的数据,然后在服务器处理该员额时,改用这一检索。

If I understand correctly you maybe interested in using GET as the form method and $_GET to get the search term.

http://php.net/manual/en/Function.http-build-query.php rel=“nofollow”>。 • 建设你搜索结果中的联系,以便不丢失这些术语。

Here s a slightly less orthodox solution: instead of links, use <input type="submit"> buttons and style them to look like hyperlinks. Give them a class and style them for the screen using CSS. You will be able to track which order you want by checking $_POST for the names on your linky buttons. I ve used this technique many times and as far as I can tell nobody has ever had a problem with it.





相关问题
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!

热门标签