$name = $_REQUEST['name']; $name2 = $_REQUEST['name2']; $title = $_REQUEST['title']; $mail = $_REQUEST['mail']; $notes = $_REQUEST['notes']; $prospect->EditContact($id, $name, $name2, $title, $mail, $notes); unset($id); unset($name); unset($name2); unset($title); unset($mail); unset($notes); unset($result); break; case "delete_phone": $id = $_REQUEST['id']; $id_c = $prospect->GetIdContactByPhoneContact($id); if ($prospect->DestroyPhoneContact($id)) { echo $id_c["id"]; } break; case "edit_phone": $id = $_REQUEST['id']; $name = $_REQUEST['name']; $phone = $_REQUEST['phone']; if ($prospect->EditPhoneContact($id, $name, $phone)) { $id_c = $prospect->GetIdContactByPhoneContact($id); echo $id_c["id"]; } break; }