set default name_min and name_max values

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 18, 2013   (RSS)

By Joef5 - March 14, 2013

I am trying to create a page that displays search results using the fieldname_min and fieldname_max values.  This part works well.  However, if I access that page without the form to send the min and max values

I get returned all results from the table.

I've tried this:

$width_min = $_POST['width_min'];    
if (!isset ($_POST['width_min']))
    {
        $width_min = 36 ;
    }    

doing the same with the width_max

If I arrive at the page via form, all works well.

If I arrive at the page with a link that includes all the variables in the link (rather long and unattractive) all works well.

Can't arrive at the page and have a limited display. I've tried a few other approaches with the same results. Any ideas?

By Joef5 - March 18, 2013

So that worked perfectly.  Thanks!