隐藏网址参数 [英] Hide URL parameters
问题描述
我有一个用于查询MySQL数据库的搜索表单。我希望搜索
结果显示在与搜索表单相同的页面上,在搜索框下方
输入搜索条件后。我可以使用GET
方法执行此操作,但是这会显示URL中的所有参数。我理解
您可以使用POST方法隐藏参数,但是我不是什么?b $ b理解我是如何在同一页面上显示结果的。如果我使用POST方法使用
,它会将用户带到一个我不想要的新页面。
如何隐藏表单的URL参数,同时在
同一页面上显示结果?是否有一种快速简便的方法来隐藏URL参数?
感谢您的帮助。
< blockquote> On Thu,2005年11月3日08:10:30 +0200,Big Time
< bi ********************* *****@hotmail.com>写道:
我有一个用于查询MySQL数据库的搜索表单。我希望搜索结果显示在与搜索表单相同的页面上,在搜索
框之后,在输入搜索条件后。我可以使用
GET
方法执行此操作,但是这会显示URL中的所有参数。我理解
你可以使用POST方法隐藏参数,但是我不理解是如何在同一页面上显示结果。如果我使用POST方法,它会将用户带到一个我不想要的新页面。
如何换新页面?哪一个?谁写了这个页面 - 脚本由
本身?
你将数据发送到同一个脚本,它会读取它并决定显示什么来显示b $ b。 。
认为脚本中有一个错误,请检查它。
如何隐藏表单的URL参数,同时在
同一页面?是否有一种快速简便的方法来隐藏URL
参数?
感谢您的帮助。
-
---
精确元搜索|主要搜索引擎
http://exactsearcher.com
Big Time写道:我有一个用于查询MySQL数据库的搜索表单。我希望在输入搜索条件后,搜索结果显示在与搜索表单相同的页面上,搜索框下方
。我可以使用GET
方法执行此操作,但是这会显示URL中的所有参数。我了解
你可以使用POST方法隐藏参数,但是我不理解的是我如何在同一页面上显示结果。如果我使用POST方法,它会将用户带到一个我不想要的新页面。
大时间,>
为什么要将用户带到新页面?它也可以将用户带到
同一页面:
< form name =" search" action ="<?php echo
_SERVER [''PHP_SELF''];" method =" POST">
搜索:< input type =" text" name =" keyword">
< br />
< input type =" submit" value =" Search">
< / form>
然后在搜索脚本的顶部,例如:
if(
I have a search form used to query a MySQL database. I want the search
results to appear on the same page as the search form, below the search box
after the have entered their search criteria. I can do this using the GET
method, however this displayrs all the parameters in the URL. I understand
you can hide the parameters by using the POST method, however what I''m not
understanding is how I can display the results on the same page. If I use
the POST method, it takes the user to a new page which I don''t want. How do
you hide the URL parameters for a form, while displaying the results on the
same page? Is there a quick and easy way to just hide the URL parameters?
Thanks for your help.
On Thu, 03 Nov 2005 08:10:30 +0200, Big Time
<bi**************************@hotmail.com> wrote:
I have a search form used to query a MySQL database. I want the search
results to appear on the same page as the search form, below the search
box
after the have entered their search criteria. I can do this using the
GET
method, however this displayrs all the parameters in the URL. I
understand
you can hide the parameters by using the POST method, however what I''m
not
understanding is how I can display the results on the same page. If I
use
the POST method, it takes the user to a new page which I don''t want.
How it takes to a new page? Which one? Who wrote this page - script by
itself?
Youre sending data to the same script, it reads its and decided what to
display..
Think there is a bug in script, check it.
How do
you hide the URL parameters for a form, while displaying the results on
the
same page? Is there a quick and easy way to just hide the URL
parameters?
Thanks for your help.
--
---
Exact Meta Search | Major Search Engine
http://exactsearcher.com
Big Time wrote:I have a search form used to query a MySQL database. I want the search
results to appear on the same page as the search form, below the search box
after the have entered their search criteria. I can do this using the GET
method, however this displayrs all the parameters in the URL. I understand
you can hide the parameters by using the POST method, however what I''m not
understanding is how I can display the results on the same page. If I use
the POST method, it takes the user to a new page which I don''t want.
Hi Big Time,
Why would it take the user to a new page? It can take the user to the
same page as well:
<form name="search" action="<?php echo
_SERVER[''PHP_SELF''];" method="POST">
Search for: <input type="text" name="keyword">
<br />
<input type="submit" value="Search">
</form>
Then at the top of your searchscript, say something like:
if (
这篇关于隐藏网址参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!