load($img); $image->resize($size[0],$size[1]); $image->save($img); } if($_REQUEST['delete_contact_picture']){ $_POST['contact_picture']=$_REQUEST['contact_picture']=""; } $json = getJSONobj(); //categories $pll = array(); $exp=explode("||||",$_POST['position_list55']); foreach($exp as $ep){ if($ep){ $pll[] = $json->decode(htmlspecialchars_decode($ep)); } } $_POST['position_list55'] = $pll; $prefix = empty($_REQUEST['dup_checked']) ? '' : 'Contacts'; $id= $contactForm->handleSave($prefix, false, false); if($id!=''){ header("Location: index.php?module=Contacts&action=DetailView&record=".$id); } ?>