function deletec($data) { validate_access_webnotes(); $wid = $data['wid']; $model = new TwextraModel(); $model->deleteNote($wid); header("Location:{$hostname}/webnotes/display.php"); exit; }