Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Multi Checkboxes on Modify

Quote Reply
Multi Checkboxes on Modify
Greetings!

I seem to be having a problem with checkboxes, where a field can hold multiple values. There is no problem in adding a new listing - it properly puts in all the values into the database.

The problem is when you try to modify a listing it correctly puts in the values when the form is first loaded, however when the listing is modified the form reloads and then only then leaves only shows up one of the checkboxes selected.

Code:
<input name="Program_Type" type="checkbox" value="Pay Per Sale"<%if Program_Type contains 'Pay Per Sale'%> checked="checked"<%endif%> />
<input name="Program_Type" type="checkbox" value="Pay Per Lead"<%if Program_Type contains 'Pay Per Lead'%> checked="checked"<%endif%> />

If anyone has any ideas of what the problem is here I'd appreciate it.


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Subject Author Views Date
Thread Multi Checkboxes on Modify Clint 3050 Oct 21, 2007, 2:27 AM
Post Re: [Clint] Multi Checkboxes on Modify
VishalT 2921 Oct 21, 2007, 5:13 AM
Post Re: [Clint] Multi Checkboxes on Modify
tandat 2915 Oct 21, 2007, 5:15 AM