[html-formfu] Re: populate_from_formfu
kewei xiao
kewei.xiao at nald.ca
Wed Jul 18 19:10:41 GMT 2007
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
More information about the HTML-FormFu
mailing list