I want to do the following without JavaScript, AJAX or a database. Only HTML and PHP.
Here's the scenario:
I have two HTML inputs in a form. This form sends the two values (name and age) by POST method. I create a user object from these values, store this values in a SESSION and then prints the users' information below the form. I have no problem creating the user object.
How can I do it in such a way that it prints out all users' information. For example first users enter his information and clicks submit, we have:
- John
- 18 years
Second user enter his information and clicks submit, we have:
- John
- 18 years
- Kevin
- 20 years
Third user enter his information and clicks submit, we have:
- John
- 18 years
- Kevin
- 20 years
- Bryan
- 19 years
and so on?
Thanks!