Welcome Guest, Not a member yet? Register   Sign In
Multiple search criteria
#14

[eluser]Pert[/eluser]
You can check if post data is present at all, and then check which values to search by in the search function itself, as you already do right now.

Even with empty search criteria, the _POST array has number of items in it, just with empty string as a value, so you can do this to check if post data is present.

Code:
if ($_POST)
{
   // run search routines
}

If you get alot of POST data anyway, you can insert hidden form field and name it "search-query" for example, then change the code to

Code:
if (isset($_POST['search-query']))
{
   ...
}


Messages In This Thread
Multiple search criteria - by El Forum - 06-18-2013, 12:34 AM
Multiple search criteria - by El Forum - 06-18-2013, 05:49 AM
Multiple search criteria - by El Forum - 06-18-2013, 06:54 PM
Multiple search criteria - by El Forum - 06-18-2013, 09:38 PM
Multiple search criteria - by El Forum - 06-18-2013, 10:29 PM
Multiple search criteria - by El Forum - 06-18-2013, 11:09 PM
Multiple search criteria - by El Forum - 06-18-2013, 11:43 PM
Multiple search criteria - by El Forum - 06-19-2013, 12:18 AM
Multiple search criteria - by El Forum - 06-19-2013, 03:55 AM
Multiple search criteria - by El Forum - 06-19-2013, 03:59 AM
Multiple search criteria - by El Forum - 06-19-2013, 04:16 AM
Multiple search criteria - by El Forum - 06-19-2013, 05:41 AM
Multiple search criteria - by El Forum - 06-19-2013, 05:42 PM
Multiple search criteria - by El Forum - 06-20-2013, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB