insert/delete query design of website
<p>I wonder what would be the professional way to handle insert/delete requests of a website?</p>

<p>Right now, what I have is I inserted two <code>&lt;input type = "hidden"/&gt;</code> on each form where one hidden's value correspond to a function it needs and the other is the parameter of this function. So when the form submits, I have a post.php file that handles ALL insert/delete requests that simply invokes the value of the hiddens via <code>call_user_func()</code> in PHP. Like so:</p>

<pre><code>&lt;input name = "arg" value = "{$id}" type = "hidden"/&gt;
&lt;input name = "call" value = "delete_member" type = "hidden"/&gt;

call_user_func($_POST['call'], $_POST['arg']);
</code></pre>

<p>I'm having doubts on how sensible this solution is because I found out that the hiddens aren't actually hidden in the source on the client-side.</p>

<p>My first solution was to basically have a lot of conditionals checking for which function to invoke but I really hated that a lot so I changed it with this solution.</p>

<p>I wonder what are the better ways I can do this, or maybe how the professionals do it? Handling insert/delete queries.</p>
