The solution is:

the name of column in the database has to be the same as the name of the param.

for example, if I have a column called "country_id" in database, then my param name in the form needs to be "country_id"

because populate_from_formfu() will loop through all columns in database and insert "$form->params" into each matched column.

If there is column not matched, that column's value will be undef, and this the problem I had before.

Hopefully I explained well. : )

Ke Wei

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to