Thanks for the response NogDog! My form is generated using multiple nested foreach loops and inserting another foreach loop messes up the order in which items are printed on the screen. There are over 150 lines of code to get the form to print on the page and I do not want to post that unless necessary. Is there a way to do something like this:
if $productId equals a $key in an array then echo the $value.
I am not using a 2 dimensional array. All of my data is stored as array(key=>value, key=>value, etc...)
I have been messing around with array_key_exists, but I don't know if this is even the right place to be working with.
Does anyone have any thoughts?
Thanks!