Post for from jQuery UI dialog
<p>I am trying to integrate new functionality using jQuery UI's dialog.</p>

<p>I have a page with a link. When a link is clicked a modal dialog with a form in it opens. That part works OK.</p>

<pre><code>$("#myForm").hide();
$("#myLink").click(function(){
    $("#myForm").dialog({
        modal: true,
        draggable: false,
        resizable: false,
        width: 450,
        buttons: {
            "Submit": function() {
                // ???
            },
            "Cancel": function() {
                $(this).dialog("close");
            }
        }
    });
});

&lt;a href="#" id="myLink"&gt;Open Dialog&lt;/a&gt;

&lt;div id="myForm"&gt;
    &lt;form&gt;
      &lt;textarea id="myValues" rows="10"&gt;&lt;/textarea&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>Now, I need to submit the form from within my dialog and POST results to the same page. I am getting all confused with how to implement the rest. I did look at the jQuery .post() example which made me even more confused. The page is in PHP, so when the results are submitted I need to get the post value and do some server-site action.</p>

<pre><code>if (isset($_POST["myValues"])) {
   // do something
}
</code></pre>

<p>Stuck, need help.</p>
