- In Action
Storing an Array in a $_SESSION Variable
In this example we take three session variables, turn them into an array that matches a table. Then based upon user input we shift the data through the html table left to right. Note: I hardcoded the values so it would be easier to get the concept.
There are many application one can use this technique with. For example, a nurse takes vital signs on her rounds and enters the data. The data gets displayed in a grid, the last round first.
The following screen shots demonstrate operation of this toycode example. Notice the form data shifts through the array right to left. Also notice that the orientation of the data is about the column axis.