Well, on the page I have three buttons (next, next2 and finally submit). The button 'next' is for making the hscoorer boxes to appear. The button 'next2' is for making ycard and rcard boxes to appear and the 'submit'-button is for sending the data to the db. Everything was working as it should BEFORE I made the same function for the card receivers with the 'next2'-button.
Now when I've filled in the endresult, pressed the 'next'-button and picked the hscoorer names I go down to the card section to fill in how many cards being dealt. Then when I press the 'next2'-button, hoping for the card boxes to appear, the data in the hscoorer boxes dissapear 🙁.
The only thing I've tried is this:
<select name="hscoorer[]" value="';?><? if (isset($_POST['hscoorer[]'])) { print $_POST['hscoorer[]']; } else { print ''; } print '">';
...but that doesn't work. When I look att the source code in explorer, the value is still "" after that I've selected a name in the drop down list and pushed the button.
I fear that I must use some sort of loop to read all the values that exists in the array hscoorer[].
And for a beginner, such as I, that is just to complex 🙁.
So if u could help me, give me a hint. I would be very thankfull!