Hi, I was wanting to make a simple script that would assign entry numbers to every input box, then randomly generate a number, and eliminate the input box if its assigned entry number was generated. Until only 1 assigned number was left, ending the game.
I don't know which is best way to do this.. jquery, js, php, or something else. php seems easiest to learn so i started with it but will change if there is easier way. am having trouble on "page2.php" part. I don't know how to carry over data from page1 to page2
I'll try an explain in this step-by-step process of what im trying to do...
Say on page1.php, a person would select the number of input boxes they wanted to use, then fill in a name for each input box. Like this:
*Clicks drop-down menu showing numbers 2-100, selects "5", then 5 input boxes appear*
1. Mike
2. Joe
3. Ken
4. Barbie
5. John
Then click "Submit" taking them to page2.php where the script randomly eliminated the input boxes 1 number at a time until only 1 number was left
Like This:
Game #1 is starting...
5 - John
2 - Joe
1 - Mike
4 - Barbie
Results
----------
1st Place: Ken
2nd Place: Barbie
3rd Place: Mike