Posting fyneworks star rating data
<p>I am implementing a star rating system on a sports website for users to rate events after they have happened. I then stumbled on this post:
<a href="http://stackoverflow.com/questions/4542883/jquery-star-rating">JQuery Star Rating</a></p>

<p>It appears to be exactly what I am looking for but I am having some trouble getting it to work as wanted.</p>

<p>The examples on the website suggest that I should have the form submit to send the data to be dealt with, however, I would like it to send the data live as the user clicks on the stats. I am also trying to implement multiple instances of the ratings on one page all clickable.</p>

<p>Jquery:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(function(){
    $('.auto-submit-star').rating({
        callback: function(value, link){
            var id = $(this).attr('id');
            $.post('http://mysite.com/ratings', {
                "type":"type", 
                "eid":"eventid", 
                "item": id, 
                "rating": value, 
                "uid":"userid"
            });
        }
    });
});
&lt;/script&gt;
</code></pre>

<p>Some of my ratings:</p>

<pre><code>organisation&lt;br /&gt;
&lt;input name="org" type="radio" class="auto-submit-star" id="org" value="1"/&gt;
&lt;input name="org" type="radio" class="auto-submit-star" id="org"  value="2"/&gt;
&lt;input name="org" type="radio" class="auto-submit-star" id="org"  checked="checked" value="3"/&gt;
&lt;input name="org" type="radio" class="auto-submit-star" id="org"  value="4"/&gt;
&lt;input name="org" type="radio" class="auto-submit-star" id="org"  value="5"/&gt;
&lt;br /&gt;&lt;br /&gt;

event rating&lt;br /&gt;
&lt;input name="event" type="radio" class="auto-submit-star" id="event" value="1"/&gt;
&lt;input name="event" type="radio" class="auto-submit-star" id="event"  value="2"/&gt;
&lt;input name="event" type="radio" class="auto-submit-star" id="event"  checked="checked" value="3"/&gt;
&lt;input name="event" type="radio" class="auto-submit-star" id="event"  value="4"/&gt;
&lt;input name="event" type="radio" class="auto-submit-star" id="event"  value="5"/&gt;
&lt;br /&gt;&lt;br /&gt;
</code></pre>

<p>The jquery succeeds in getting to my php code to handle the input but on adding to the database I am finding that nothing is coming through.</p>

<p>I have firebug installed as well but can find no record of the post (though am not sure I'm looking in the right place).</p>

<p>Any help would be grand, I checked with an alert and value and id are both working as they should within the page.</p>
