Each event handler onX, plus also the layout, is translated into different methods on a $TMP class. The only way to transfer data between these are via the page attributes. Or via a controller/model/application class.
Most of this has been discussed in the recent past here. As I see you are still new, I would suggest that you also look at some of the older threads as well, when you have a free moment. There is real gold buried here. This way you quickly get up to speed, as you see similar questions from other people, plus interesting answers.
Add a comment