Menu
I’m dumb. I’m passing some values from a form page to another PHP page for display. I just need help looping through the values and creating a new variable. The number of values will vary.
Form field names and values being posted:
priceOption1: 123
priceOption2: 368
priceOption3: 3678
…
I need to be able to take these values (regardless of how many) and create a new variable like this with spaces between the values:
priceOptions = “123 368 3678”;
Note: I cannot use priceOption[]. The form is pretty complex and is already set-up this way.
Thank you for your help!!!