how can i generate dynamic hidden values in a form
<p>I have got a shopping cart which is build using jquery and php. and I need to generate hidden values for item id. Every time I click add, the value must be different.</p>

<p>I do not know how to create dynamic values which will be different on each click.</p>

<p>At the moment I created with php the following code.</p>

<pre><code>            &lt;form method="post" action="" class="jcart"&gt;
            &lt;? $unique = md5(uniqid()); ?&gt;
                &lt;input type="hidden" name="my-item-id" value="&lt;?=$unique;?&gt;" /&gt;
                &lt;input type="submit" name="my-add-button" value="add to cart" class="button" /&gt;

            &lt;/form&gt;
</code></pre>

<p>The problem is unless I refresh the page I'm getting same hidden value. What can I do to get different values without refreshing the page.</p>
