I'm a little stuck.
After alot of work I've got this page set up that has multiple select fields on it.
Each field has the same name of food[].
This then stores each select menu value in the food[] array. Im now wondering how i can pull each array value out, compare it to another value, and then enter a new row with the resulting values into a table.
Mostly i'm just fuzzy on how to seperate the array.
ex. If the selected items are steak, peas, and cake.
Then is should be food[0] = steak, food[1] = peas and food[2] = cake.
Am i correct with that?
If so, what if there are more or less items? Should I just set up a for loop or something?
Like I said I'm just trying to get a grasp on the correct syntax. I'm still a little new to PHP 🙂