problem using dialog modal form to send data into the database

problem using dialog modal form to send data into the database

Hi,
i'm using "dialog modal form" of this link  http://jqueryui.com/dialog/#modal-form
In this example they send the data to the same page (into the div users tbody) with this part of the code:
if ( bValid )
{ $( "#users tbody" ).append( "" + "" + name.val() + "" + "" + email.val() + "" + "" + password.val() + "" + "" );


And i want to send the data (name ,email,password) into my database or simply into another page  using php code.
Please help me
Thank you