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

Retaining Search criteria on combined Search/Results page

Thread began 2/11/2011 1:45 pm by paul386190 | Last modified 2/14/2011 9:30 am by paul386190 | 1270 views | 9 replies


HI Jason, many thanks for the swift response.
Unfortunately though that doesn't appear to have made any difference.

Below is the code I have in the form which I've amended as you suggested...

<input <?php if (!(strcmp(((isset($_POST["search_usage[]"]))?$_POST["search_usage[]"]:""),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="search_usage[]" id="search_usage_0" value="1" />
<input <?php if (!(strcmp(((isset($_POST["search_usage[]"]))?$_POST["search_usage[]"]:""),2))) {echo "checked=\"checked\"";} ?> type="checkbox" name="search_usage[]" id="search_usage_1" value="2" />
<input <?php if (!(strcmp(((isset($_POST["search_usage[]"]))?$_POST["search_usage[]"]:""),3))) {echo "checked=\"checked\"";} ?> type="checkbox" name="search_usage[]" id="search_usage_2" value="3" />

and below is what is being displayed in the comparison list additions of the search script...


The "AND" is there as I have more groups of checkboxes within the form but it kind of made sense to just highlight one for the moment. Basically I have a list of products which have all been assigned a level of 'usage' - 1, 2 or 3 - which is recorded in the database in a column named 'search_usage' and I'm giving the visitor the chance to see any combination of machines, ie Just those with level 1 or those with level 1 & 2.

The form is functioning correctly in that it is displaying the right results but we're just not seeing the original checks in the boxes of the search panel.

Again, any guidance would be greatly appreciated.
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...