Saving Checkbox values in DB
-
Hi Abhishek, thanks for the plugin!
I’m having some issues saving checkbox fields. The first is related to value encoding, the second is about how your plugin saves checkbox values to the database.
For example, two checkbox values: “Hélix” and “Septum” are converted to [“H\u00e9lix”,”Septum”] in the database.
First question: Why is the character é converted to Unicode \u00e9?
Second question: ACF saves the checkbox values in post_meta table in an array like:
a:2:{i:0;s:5:”Hélix”;i:1;s:6:”Septum”;}
Why the checkbox values in custom table are saved in [“value 1″,”value 2”] format?If the field is radio, I have no issues with the value enconding.
Thanks for your help!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Saving Checkbox values in DB’ is closed to new replies.