$lblCases=$_REQUEST[`lblCases`];if ($lblCases!=``){  $CS_EventId=$_SESSION[`CS_Event`];  $UserId=$_SESSION[`UserId`];  $cases = explode("", $lblCases);  for ($i=0; $i<count($cases); $i++)  {    $case=$cases[$i];    if ($case!="") $stat=CSpostEvent($case,$CS_EventId);  }  $_SESSION["MsgTxt"]="Events have been posted for these cases";}$stat=1;