Home > Backend Development > PHP Tutorial > PHP搜索问题

PHP搜索问题

WBOY
Release: 2016-06-23 14:00:24
Original
979 people have browsed it

我想做个搜索功能,想让搜索之后的页面上的搜索框中显示搜索的关键字,就是不管你分页后怎么点击下一页或者上一页,要搜索的关键字都会显示在搜索框中


回复讨论(解决方案)

你在结果页中写上不就行了?

1、要么像 谷歌、百度那样用get提交
参数都在链接上面、输入框直接读取链接上的变量

2、要么自己定义一个变量保存在内存当中

你怎么取得搜索关键字去搜索数据库的,就同样取得这个关键字显示到输入框里好了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template