I am currently sending a query variable to a php file like this:
query = "?price_from=" +price_from+ "&price_to=" + price_to etc etc...
I want to populate this query variable by using a loop to check if the user has chosen any search criteria in dropdown lists that exists on the page... It is only optional to chose the search criterias...
How do i do this?
Remember if the drop lists have the default value of 001, then the user havent entered any criteria (ex price range). So then i want the loop to skip this drop list, and move to the next. And if it finds any value other than 001, I want it to populate the query variable.
The main problem is that the php file uses var names such as "price from" and "price to" from the query variable, and if nothing is set in the variable "price to" then it will just print "undefined" or something...
Help!