close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Retain search values in drop downs

Thread began 6/07/2012 4:00 pm by paul386190 | Last modified 6/07/2012 4:57 pm by paul386190 | 552 views | 2 replies


Retain search values in drop downs

Hi there I wonder if someone can assist?

I'm working on a search tool for a client with which customers can refine their view of specific products based on a number of options. There is a working demo at shredder-search.php which has both the search and results displaying on the same page.

I have this working to a degree, however when they make some selections and click the 'Search' button the relevant products appear but the drop downs return to displaying 'All' rather than the retaining the option the customer has just selected.

<option value="">All</option>

Could you please advise how I may resolve this issue?

An additional question about this, but regarding the URLs that are generated. All of the drop downs are populated from separate tables in the database and the options have a 'value' and a corresponding 'label', both of which are recorded in their respective tables. EG there is a table named 'Security' with two rows, the first has an id of '1' and a label of 'Level 3' and the second has an id of '2' and a label of 'Level 4'. If I select the second one of these options in the 'Security Level' drop down when doing a search, the URL contains '...&security=2&...'. Is there any way I could replace the '2' in the URL so that it reads '...&security=Level4&...' instead as this URL would be easier to understand in the website's page statistics?

Many thanks in advance for any assistance.

Kind regards

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...