Submit form with jquery
<p>I am very new to jquery and I have a confirm / cancel message box which works very well except I can't get any of the posted values from the form.  I know it is me and my lack of understanding of jquery but I would be very grateful if someone could look at my code and tell me what needs to be in the function(result) so that when the form posts to it's self I can use if(isset['$_post['delete_job'])) in order to run a php script.</p>

<p>My form...</p>

<pre><code>&lt;form id="del_job" onsubmit="return del_job()" method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;"&gt;
&lt;div id="deleted"&gt;&lt;button type="submit"  name="delete_job" title="Delete Job" style="float:left; border:none; cursor:pointer" &gt;&lt;img src="img/delete.jpg" /&gt;&lt;/button&gt; Delete&lt;/a&gt;&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>My Jquery...</p>

<pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
    $('#del_job').submit(function(ev){

      $.msgbox("Are you sure?", {
        type: "confirm", 
        buttons: [
          {type: "submit", value: "Yes"},
          {type: "cancel", value: "No"}
        ]
      }, function(result) {
        if (result &amp;&amp; result=='Yes') {
          $('#del_job').send();
        }
      });

      ev.preventDefault();
    });
  });
&lt;/script&gt;
</code></pre>
