So I've got (for examples sake) 2 predefined arrays, something like this.
$arrayone = array("pizza" => "random unique stuff", "egg" => "again sumin random", "cheese" => "random"); $arraytwo = array("pizza" => "blah", "egg" => "tee hee", "cheese" => "cough");I then need somehow for these arrays to be linked to checkboxs (store the variable in the value?). So that if the user selected say both of them, then with a foreach command i need to be able to just extract the "egg" key from within all that have been selected so I can then carry out the rest of my code.
I know how to do this with normal variables. But I don't know how to do this with arrays where i want the same specific data thats attached to the particular "key", in this case the key being "egg".
I think I'm just getting really confused because I'm not sure any of that made sense! Lol but any help would be awesome! Cheers =]