How many possible elements may this array possible hold? Of course, I'm talking about $thevar. It seems to me that if it's indeed part of a select statement, and unless the select statement can accept multiple entries, then it's not an array. Try checking to see if it's an array first. How about something like below...
if(is_array($POST[thevar]))
{
if(in_array("1", $POST[thevar]))
{
Do something
}
}
elseif($_POST[thevar]==1)
{
Do the same something as the something
done above :-)
}
}
I hope that helps and that I understood your question.
Later on,
Big Din K.R.