All pastes #167915 Raw Edit

me3

public php v1 · immutable
·published 2006-09-12 14:33 UTC
rendered paste body
if($_REQUEST[Action]=="Approve"){		$update = new dbFuncs;		$id=$_REQUEST[ID];		$fields = array();	$params = array();	$pattern = '/Zip/';		foreach($_POST as $key => $value)	{		if(preg_match($pattern, $key)) {continue;}		if(is_array($value)){continue;}		if($key == 'Action'){continue;}						array_push($fields, $key);		array_push($params, $value);		}		$update->updatePo($fields, $params, $_REQUEST[ID]);	}