jquery & php: saving some data without reload
<p>I have three buttons and need to save some data. I have a idea, I have to set an ID to every button and then let the JS determinate witch button that has been pressed, like:</p>

<pre><code>$("#mySpecifikButton").click(function()
{
....some code here...
});
</code></pre>

<p>but then Im stuck. For example I have 9 users. All they have an ID in the db. So now we have all the users in separate rows:</p>

<pre><code>&lt;p&gt;&lt;a id="userID"&gt;user 0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="userID"&gt;user 1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="userID"&gt;user 2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="userID"&gt;user 3&lt;/a&gt;&lt;/p&gt;
...
</code></pre>

<p>When I press on a specifik user I want to add it to db through php with help of jquery. 
But how do I sent it to php with JS (jquery)?</p>

<p>Im I thinking right or is there better ways?</p>

<p>If I didn't described it well, ask me.</p>
