Jump to content

how to refine search with form, by changing _GET variables


turpentyne

Recommended Posts

From a previous search page that passes form variables via _GET to a new results.php page. On this page, I'm building a form down the side, to refine the search results.

 

But I can't seem to remember the javascript to put into the form to update several $_Get variables in the url, and reload the page, so that the php runs and narrows results.

 

I'm sure it was pretty simple. I just don't remember and can't seem to find something does/explains what I want.

 

 

thanks!

 

 

Link to comment
Share on other sites

I think I got this part figured out. It was simpler than I thought. I have the dropdowns set with an onselect function that changes an $_Get item in the url and reloads the page.

 

But now I need to figure out another snippet. Is there a snippet to present the dropdowns based on the url _gets that are already at the top? If I select one button, it works fine. If I select a second button, it works - but loses the first button's choice.

 

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.