Dialog modal form

Dialog modal form


Hi all
I am struggling to submit the form that I am using
I am using the jqueryui dialog modal form
http://jqueryui.com/demos/dialog/?#modal-form
the form is populated with the correct data from a database
I have a button in place and am following the example to validate
but
how do I submit the form to a specific url?
thank you in advance
much appreciated