How do you update an implode dropdown select field with multiple select
Hi,
I have an implode dropdown select field with multiple select. I have been able to setup the insert easily. But now I can't seem to know how to code the field to edit existing record.
When you open the form to edict the existing record, it does not populate the field with existing record. Rather you will have to add the new record as though you are adding it for the first time
This is how the edit dropdown select field is. The "financepln" is the name of the field
<select class="chosen-select" multiple data-placeholder="Select one or more options" name="financepln[]" id="financepln" required style="width:100%; height:35px; font-size:14px; border:#EEE thin solid; background-color:#FFF; text-align:left;">
<option value="" <?php if (!(strcmp("", ($rsMyProfile->getColumnVal("financepln"))))) {echo "selected=\"selected\"";} ?>></option>
<option value="Mortgage/Bank Loan" <?php if (!(strcmp("Mortgage/Bank Loan", ($rsMyProfile->getColumnVal("financepln"))))) {echo "selected=\"selected\"";} ?>>Mortgage/Bank Loan</option>
<option value="Private Source" <?php if (!(strcmp("Private Source", ($rsMyProfile->getColumnVal("financepln"))))) {echo "selected=\"selected\"";} ?>>Private Source</option>
</select>
Please kindly help.
Thank you