I just added this in:

<script type="text/javascript">
          $('#ratingForm').submit(function() {
                $(this).ajaxSubmit();
                        return false;
                 });
    </script>

(and gave the form the ID of #ratingForm)


The form submits the data for the first submit - but then any other
submits - no data makes it into the DB.  What am I missing?


On Mar 18, 7:34 pm, Mike Alsup <mal...@gmail.com> wrote:
> > The code that processes theformdata uses a function:
>
> > new_rating( $_POST['photo_id'], $user_id, $_POST['rating'] );
>
> I meant the JavaScript code that submits theform.  If you're not
> submitting it with JavaScript then theformPOST will load the page at
> "/".

Reply via email to