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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.