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.
<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
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