Post serialized form data and extra variables using JQuery
<p>I am trying to use this piece of code to serialize a form AND send an extra variable not found in the form, at the same time. The following line of code is what I expected, but sadly does not work.</p>

<pre><code>var thePage = theFilename();
$.post("pagedetail.php", { $("#PageDetailForm").serialize(), thePage: thePage },
    function(data) {
        alert(data); 
});
</code></pre>

<p>Any ideas?</p>
