Thread:Extension talk:PhpTags/Running code "on click"

Currently the PHP-code is run as it is and does not demand an interaction with the user. I would be nice to have this kind of control. What I would like to have is a button that can be clicked and then something happens; a change in the variable, some kind of calculation etc.