Displaying Some Comma-Separated Sub-String Values from A Single String to The Checked CheckBoxes Control in PHP
Yesterday I faced a situation while I was trying to get some sub-string values that derived from a single string that being saved in database, and displayed them to the checked CheckBoxes control in PHP. Let’s say I had 5 CheckBoxes control named Applications on my form, whereas the values stored in a single string from database, for instance, is: “Application 1, Application 3, Application 5″. Then I wanted that the first, the third, and the fifth CheckBoxes would be checked based on that string. So, finally, I wrote this following code to solve my problem. Read more…
Recent Comments