<?php require 'lib/Inter.php'; $Y = new Inter(); $id = $_POST['id']; if ($id != null) { $eliminarMedicina = $Y->EliminarMedicina($id); echo 1; } else { echo 0; }