How do you pass an array from PHP to html-code?
My way to do this is to pass the array as a string to a formfield and then use javascript to put the values into an array. Is this a good method?
I've seen some coders suggest to use the htmlspecialchars-function combined with serialization. Does anyone have an example for how to do this?
What is the better way to do it? What is the most secure?
Thanks.