We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
How do I fetch a multiple search string argument
With search.php, how can you show results from multiple queries in the string?
/search.php?q=foo successfully shows results for "foo"
But how would I show results for
/search.php?q=foo&bar so that results were returned for "foo" or "bar"?
In the default search.php I can see you can fetch the URL value to perform a basic search (as below) but I'm wondering how to do this for multiple search terms
$query = perch_get('q'); // 'q' query string argument e.g. search.php?q=apples
Want to reply to this thread?Login with Perch