Hi Lucy
without knowing your table structure and what the search might be like it's hard to advise. However I would thought you would just have
$sqlstr = "select * from searchtable where ";
if (isset($search1))
$sqlstr .= " name = '$search1'";
if (isset($search2))
$sqlstr .= "or name = '$search2'";
and so on...
If you have to apply the search criteria to a number of fields or tables then yes, your queries could become quite complicated.