Public feed #888712

Anonymous

public php v1 · immutable
Raw Edit
·published 2008-02-02 10:17 UTC
rendered paste body
if(array_key_exists('comment', $_POST)) {	$approved = array();	$deleted = array();	//gathering	foreach ($_POST['comment'] as $id=>$action) {		switch ($action){		case "approve":			$approved[] = $id;			break;		case "delete":			$deleted[] = $id;			break;		default:			//do nothing for 'later'		}	}}