Hi all
Here is a PHP question I have to answer.
Write a php file called reload.php that contains a table with 2 rows and 3 columns. In each of the cells of the top row of this table there should be the strings AAA, BBB & CCC. In the second row of this table there should be 3 submit buttons labeled ONE, TWO & THREE.
When the user presses one of these buttons, the same reload.php page should load, such that the string above the pressed button moves to the top left cell and the other two cells are filled with strings one further in the sequence. E.g. if the user presses the button below the string BBB, then the new page should have cells filled with the values BBB, CCC, DDD. If, in this page, the user now presses the button below the string DDD, the reloaded page should display the strings DDD, EEE, FFF. If the sequence ever gets beyond ZZZ, then it should wrap back to AAA.
Now the thing I'm having a problem with is...
When the form is submitted and the page reloads, how do I determine which button was pressed/which string was "chosen"? How would I structure that bit? I simply cannot of something that would work.
Would appreciate any help/ideas on this. Thanks.