Hi guys,

Im really new to jquery and whilst ive been able to muddle through with my project so far i seem to have hit a wall with this issue.

Basically im trying to submit a form contained within a Jquery UI dialog. But i cant seem t get the submit button to actually submit.

This is the code for the form:
HTML Code:
<div id="popupform">
      <form action="create_repair.php" method="POST" name="createrepairform" id="createrepairform" enctype="multipart/form-data">
            <input type="text" name="name" />
            <input type="text" name="email" />
This is the jquery code:
$(function() {
      $( \"#popupform\" ).dialog({ 
             width: 500,
             modal: true,
             buttons: {
                 \"Submit\": function() {
                \"Close\": function(){
Basically when the submit button is click all that happens is the dialog is closed. Nothing gets passed to the php script waiting for it. I know the php script works OK because if i add a submit button in the html form that submits the data fine.

If anyone could point me in the right direction i would be gratefully.