", $ret); return htmlentities($ret); } if (isset($_POST['sender'])) { foreach ($_POST['sender'] as $k=>$v) { // at this point, the object title will be in $v, its data is in $_POST['data'][$k] switch($v) { } } } if (isset($_POST['refresh'])) { foreach ($_POST['refresh'] as $v) { // list of titles. Note that titles from sender will also appear here switch($v) { default: echo "$v,Refreshed at ".date("H:i:s").OUTPUT_DELIM."Second param\n"; } } } ?>