I'm a beginner, and I want create my own question type. I read some documentation about question engine, but I have a question.
I want to create my button in question. In renderer.php I wrote: $result .= html_writer::empty_tag('input', array('name'=>'btn', 'type' => 'submit', 'value' => 'Click me'));
Now I want bind this button and php script, where I can analyze the data entered by student (before pressing button), then remember the result and after reloading page, depending on calculated result to build a new body of question.
Any ideas?