Gossamer Forum
Home : Products : DBMan : Customization :

checkbox value not saved to db

Quote Reply
checkbox value not saved to db
I had modify multi record mod in my db.cgi, inlcuding the replaced routines for building radio & checkbox fields. i noticed that the value of checkbox fields was being saved to database when creating a record, but when a record was modified, the value was not displayed (i.e. the field was not checked when appropriate) and if the record was modified the original checkbox values were deleted. since i was not using the multi record mod, i changed to the original build checkbox routine and it works. any idea what caused my problem?
Quote Reply
Re: [delicia] checkbox value not saved to db In reply to
I would have to study the code to know what was going on with it for sure.

It seems to me that the subroutines I wrote include the key values for the records. Otherwise you're going to get cross-contamination (for want of a better term :) ) between the records.

Personally, I don't think it's a really good idea to use that mod. I include it on the site because someone asked for it. I figured someone else might want the same thing and it was easier to make a mod than to try to search through the forum.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.