This is what I am trying to do. I want a user to be able to pick a general number range within a drop down menu - and then pass that variable so that when the recordset is pulled up dynamically on the next page - it will pull up products only within that general number range.
For example:
I want one variable to pull up anything less than or equal to 1500 - I named the variable L1500
I want one variable to pull up anything between 1500 and 3000 - I named that variable B1500
I want the last variable to pull up anything equal to or above 3000 - I named that variable A3000
The name of the drop-down menu is 'lumens'
So, on the page that the variables I sent to - I need to assign those variables those numbers right? I'm just not sure how to do that. This is what I thought I would need:
if ($lumens == L1500)
$lumens<=1500;
elseif ($lumens == B1500)
$lumens > 1500 && $lumens <3000;
elseif ($lumens == A3000)
$lumens>= 3000;
But that isn't working - so obviously something is wrong. Can anyone help me with this?
Thanks!
For example:
I want one variable to pull up anything less than or equal to 1500 - I named the variable L1500
I want one variable to pull up anything between 1500 and 3000 - I named that variable B1500
I want the last variable to pull up anything equal to or above 3000 - I named that variable A3000
The name of the drop-down menu is 'lumens'
So, on the page that the variables I sent to - I need to assign those variables those numbers right? I'm just not sure how to do that. This is what I thought I would need:
if ($lumens == L1500)
$lumens<=1500;
elseif ($lumens == B1500)
$lumens > 1500 && $lumens <3000;
elseif ($lumens == A3000)
$lumens>= 3000;
But that isn't working - so obviously something is wrong. Can anyone help me with this?
Thanks!
Comment