Send unique value to $ get('page.asp?postId=' from links?
<p>I want to send a unique value to a variable when I click on a link.</p>

<p>I want to send a unique value to the <code>postIdvariable</code> below: </p>

<pre><code>function uploadphoto(){
    $.get('page.asp?postId=postIdvariable&amp;id=' +
    response.id);
}
</code></pre>

<p>Im looping out the links from the database, that call the function so I have: </p>

<pre><code>&lt;a href="#" onClick="uploadphoto(); return false;"&gt;Upload photo 1&lt;/a&gt;
&lt;a href="#" onClick="uploadphoto(); return false;"&gt;Upload photo 2&lt;/a&gt;
&lt;a href="#" onClick="uploadphoto(); return false;"&gt;Upload photo 3&lt;/a&gt;
</code></pre>

<p>So how can I send one value from photo link 1, another from photolink 2 etc?</p>
