Hi! It would be a nice feature if the db option supports inserting and updating to multiple tables; without the need of handling the datastorage of the joined table myself. Is this be possible?
Changed at 16 April 12 / 14:54
As I understand this function makes it possible to store array values of a checkbox or select field into a seperated table, but not the data of a separated list of multiple fields... right?
Then the form would have the fields firstname, lastname and company name. I would really really appreciate it if the form itself saves the 3 fields to the corresponding tables.
The dbFormHandler can compare the fieldnames with the columnnames of the tables, so the insert and update statements won't contain column names that don't exist. Like this:
// Data array, like FormHandler normally populates
$data = array(
'firstname' => 'John',
'lastname' => 'Doe',
"company_name' => 'Example',
);
// Table array, like FormHandler could potentially populate when using AddJoinTable()
$tables = array('contacts', 'companies');
Iyas, I totally agree! Same counts for me; I don't use Frameworks either, because FormHandler takes away the number 1 reason for using Frameworks at all: form handling.
A few missing features at the moment though:
* Subforms
* GET support
* Support for arrays as fieldnames