It's not really clear to me what you intended, but if the intention was to start an IF block within the SWITCH block, then that is not going to work. If that's the case, you could do something like:
$flag = false;
switch($blah)
{
case 'foo':
if(preg_match(blah blah blah))
{
$flag = true;
}
break;
// and so forth...
default:
if(preg_match(yadda yadda yadda))
{
$flag = true;
}
}
if($flag)
{
echo 'blah blah blah yadda yadda yadda';
}
PS: The preg_match() in the first two cases of your switch will never return true as currently written, since they are checking the same variable, $action6, used in the switch(), and thus by definition will have the value matched in the case. I'm guessing you meant it to be some other variable in the preg_match()?