Alright, Ive had a few attempts at this, but I cant seem to get my head around the necesary logic. (if indeed it can be)
What I have, is a site where its necesary to repeat the same input box a undefined number of times, to collect a range of different prices for different styles of the same product.
So leaving say.. a dozen input boxes when only 2 may be needed on this occasion is untidy, and instead I came up with the idea that we should begin with one box, and a button that creates another new box.. and when clicked again another new box, and so on.
The question is, can this be done in php?
My first idea was to display $n number of boxes and increase $n each time the button is clicked, but a second click negates the first, so this didnt work.
Then I wanted to try populating an array with each new value, but again, it works for the first click but not again.