It can certainly be done.
You will either need a server-side language or if you have no problem with it being stricly server-side, then you can use Local Storage.
Both have various strengths and weaknesses in your situation. A serverside language is has a steep learning curve, but once you get to know it will provide you with so much more options, and possibilities that can not be done using clientside scripting.
Clientside scripting on the other hand has a somewhat lighter curve if you already do know some Javascript, but the weakness is that it's only on the current computer - You will be able to save data to the local storage, but if you change to another computer the data won't be available.