 <p>in you delete.php file :</p> <pre><code>if(isset($_GET['id']) &amp;&amp; $_GET['id'] != null &amp;&amp; $_GET['id'] != ""){ require_once 'function.php'; $myFunction = new myFunctionClass(); $myFunction-&gt;DoMyDeleteLogic($_GET['id']); // protect data from get before //or static class MyFunctionClass::DoMyDeleteLogic($_GET['id']); } else{ echo('datas missing...'); //put a throw exception } </code></pre>