Jump to content

Searching within a search result


coolphpdude

Recommended Posts

Hi,

 

quick question for you... is it possible to search within a search result (refine an existing search).

 

If i done an original search ($keyword as the searched word) e.g. $search = mysql_query("SELECT * FROM holidays WHERE holiday_hotel = $keyword")

 

is it then possible on the next page to have another search box where the user could type in another keyword to search for?

 

so for example, the user has searched for 'leazes hotel' and returned 30 results from various different countries around the world, could the user then search for 'france' as the location within that existing search result??

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/95779-searching-within-a-search-result/
Share on other sites

Create a form that has hidden inputs for what they search the first time. All the user would see if a button that says refine search and all the previous values from the form would be submitted to a page. That page would just populate the search form again with what is posted.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.