title: jquery.ui dialog confirming delete not returning values to php
body: <p>After 4-5 hours googling and researching, triggering a form submit doesn't return field values to php as expected ... appreciate any help</p>
  
  <pre><code>&lt;?php   
  if (isset($_POST['xxxx'])){
      echo "POST DELETE  &lt;br /&gt;";
  }else{
  ?&gt;
    &lt;div id="dialog_confirm" title="Confirm Delete"&gt;Are you sure ?&lt;/div&gt;
    &lt;form id='inputform' name='tablename' method='post' action='#' /&gt;
      &lt;input type='text' name='xxxx' value='22' /&gt;
      &lt;input type='submit' class='delete' name='delete' value='Delete' /&gt;
    &lt;/form&gt;
  
    &lt;script type='text/javascript'&gt;
      jQuery(document).ready(function(){
         $('#inputform').submit( function(){
         $("#dialog_confirm").dialog('open'); 
            return false;
         });
         $( "#dialog_confirm" ).dialog({
            autoOpen:     false,
            resizable: false,
            height:140,
            modal: true,
            buttons: {
              "Delete all items": function() { 
                $( this ).dialog( "close" );
                window.inputform.submit();
              },
              Cancel:     function() { $( this ).dialog( "close" );}
            }
         });              
      });
    &lt;/script&gt;
  </code></pre>
  
  <p>
  
  </p>