I am trying to test if the txt box txt_matrl from the previous page has anything in it. It always falls into the loop even if the text box is empty? I tried isset also. Can you see an obvious mistake?
if(($POST['txt_matrl'])!= " ")
{
$mtrl = $POST['txt_matrl'];
if ($strWhereSet == "Yes")
{
$strWHERE = $strWHERE." AND material like '".$mtrl."'";
}
else
{
$strWHERE = "Where material like '".$mtrl."'";
$strWhereSet = "Yes";
}
}