You can use DataConnector for simple form saving. It will recognize and automatically exec CRUD operations for next patterns
Get data for some record in DB, by id
GET: connector.php?action=get&id={some}
Returns: data in json or xml format.
Delete data for some record in DB, by id
GET: connector.php?action=delete POST: id={some}
Returns: “true” as string, when operation executed correctly.
Update data for some record in DB, by id
GET: connector.php?action=delete POST: id={some}&property_name={value}
Returns: “true” as string, when operation executed correctly.
Insert data in DB
GET: connector.php?action=insert POST: property_name={value}
Returns: “true\n{new id}” as string, when operation executed correctly.
Basically to save data you can use code like
dhx.ajax().post("connector.php?action=insert", $$('form').getValues());