I have a webpage/form where a user can change his/her ( @ralphm ) interests. It is a series of checkboxes.
The form is populated directly by a multidimensional array, and indirectly by a database query.
Because this script is complex - and my client’s - I can’t post it here.
Anyway, the problem is that ever since I replaced my dummy records with production data, the form results are in some wacked out sort order?!
I did a var_dump on the multidimensional array that populates the form, and things look good there, but what I see when the page loads is off and in no easily identifiable pattern.
Things are a little tricky in that I have this outward appearance…
SPORTS INDOORS __ Football __ Cooking __ Basketball __ Knitting __ Baseball __ Reading OUTDOORS COMMUNITY __ Hunting __ Volunteering __ Fishing __ Choir __ Camping __ Community Group __ Hiking
…where the HTML is two columns.
Here is a tiny code snippet…
// Looks good here
var_dump($interestsDBArray);
exit();
// Iterate through array containing active Interests and checked info.
foreach($interestsDBArray as $key => $subArray){
// Is messed up starting here - I assume?!
I know this description is vague, but I am hoping this is some newbie mistake I’m making - maybe with multidimensional arrays?