Is there an error in this jquery file?
<pre><code>$(document).ready(function(){    
    /* fetch elements and stop form event */
    var submitData = $("form.follow-form").submit(function (e) {
        /* stop event */
        e.preventDefault();
        /* "on request" */
        $(this).find('i').addClass('active');
        /* send ajax request */

        $.ajax({
            type: "POST",
            url: "recycle.php",
            data: submitData,
            dataType: "html",
            success: function(msg){
                if(parseInt(msg)!=0)
                {            
                    /* find and hide button, create element */
                    $(e.currentTarget)
                      .find('button').hide()
                      .after('&lt;span class="following"&gt;&lt;span&gt;&lt;/span&gt;Recycled!&lt;/span&gt;');
                }
            }    
        });
    });
});
</code></pre>

<p>I think there is an error in this jquery syntax and or it could be my php code, I cant seem to find it!!</p>

<p>this is the recycle.php</p>

<pre><code>&lt;?php session_start();
include_once ('includes/connect.php');

$id = $_POST['id'];
$tweet =$_POST['tweet'];


  mysql_query("INSERT INTO notes SET user_note='".$_POST['tweet']."',dt=NOW(),recycle_id='".$id."', user_id = '".$_SESSION['user_id']."' ");



?&gt;
</code></pre>

<p>and this is the html code</p>

<pre><code>&lt;form class="follow-form" method="post" action="recycle.php"&gt;
    &lt;input name="id" value="$id" type="hidden"&gt;
        &lt;input name="tweet" value="$tweet" type="hidden"&gt;
    &lt;button type="submit" value="Actions" class="btn follow" title="123456"&gt;
        &lt;i&gt;&lt;/i&gt;&lt;span&gt;recyle&lt;/span&gt;
    &lt;/button&gt;
&lt;/form&gt;
</code></pre>
