i tried serialize() but doesnt seem to work ? what am i doing wrong?
<p>i did this but not working </p>

<pre><code>if(error.join()!="")
{
    $("#sub_error").fadeTo(200,0.1,function()
    {
        $("#sub_error").html(error.join("&lt;br/&gt;&lt;br/&gt;")).append('&lt;br/&gt;
         &lt;input type="button" name="err_ok" id="err_ok" value="ok"&gt;')
         .addClass('subboxerror').fadeTo(900,1);
     bindEvents();
    });

    function bindEvents() 
    {
        $("#err_ok").click(function() 
        {
            $("#sub_error").fadeTo(1000,0);
        });
    }
}
else
{
    $("#frm_sub")
     .removeClass().addClass('messagebox')
     .text('Submitting...').fadeIn("slow");

    $.post("register_user.php",
    { 
        $('#frm1').serialize() 
    } , 
    function(data)
    {
        alert(data);
    });
});
}
</code></pre>
