For PHP search problems, I want to create a search function to display search keywords in the search box on the page after the search, no matter how you click the next page or the previous page, the keywords to be searched are displayed in the search box; google and Baidu submit parameters using get in the same way on the link, the input box directly reads the variables on the link 2, or define a variable to be saved in the memory, how do you search for problems in PHP?
I want to create a search function, so that the search keyword is displayed in the search box after the search, no matter how you click the next page or the previous page after the page, all the keywords to be searched are displayed in the search box.
------ Solution --------------------
1. either use get for submission like google or baidu
The parameters are on the link and the input box directly reads the variables on the link.
2. either define a variable and save it in the memory.
------ Solution --------------------
How do you obtain the search keyword to search for the database? this keyword is also obtained and displayed in the input box.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service