have a jQuery UI dialog that contains a small form. When submitting the form it closes the dialog. This would be fine if the form is completed properly but if it isn't the validation messages appear so in the event of this I need the dialog to stay open.
The problem I have is that I am using Webassist's Dreamweaver extensions to write the php for the validation and calls to the Database which inserts the form data which is triggered by the SUBMIT button. I somehow need to prevent the submit button from closing the dialog if the form has errors.