Hi,
I have a form the uses PHP mail to email inputted form data to an email address. The form has has 4 select fields which contain the same 10 colours in each. For example, when a user selects Light Green from the first select field, the value of #66FF66 is assigned to a variable e.g. (color-select-1-hex, color-select-2-hex, color-select-3-hex and color-select-4-hex).
What I need is advice on how I go about creating a loop statement which runs through each of the 4 select field user inputs, creates a new variable (e.g. color-select-1-name) and assigns 'Light Green' to it. I need to keep color-select-1-hex equal to #66FF66.
What is the recommended approach here? Thanks for any help!