Forum Moderators: coopster
So, the form variables received might include (requestid=784, language=EN, category_id_3=Y, category_id_5=Y). I want to create an array of category ids from these form values, to send into a function.
How can I loop throught the submitted variable names, in order to create the required array, ONLY including those related to category_ids? (Or a bigger question - should I have set my form up in a different manner, in order to receive the data in a more useful form?!?)
Many thanks in advance to anyone who can decipher the above!
Variables from outside PHP [php.net]
see Example 12-11. More complex form variables
but coopster's hint on the $_POST[] array might be even of more practical use under specific circumstances.
--hakre