Post Method to URL from a onclick function
<p>I need help on something that sounds easy but is difficult for me.
So when someone clicks on this div:</p>

<pre><code>&lt;div onclick="&lt;go to url sending data using the post method&gt;"&gt;Click Me&lt;/div&gt;
</code></pre>

<p>I want it to send data to a PHP file that will take the information that i want it to. I would use the GET function but I have heard that its easily hackable. If their is a lot simpler solution or something more secure please help me out.</p>