On my website for students to learn python coding, I have a completeTask page that displays all modules of the selected course as dropdown buttons and when selected it displays all tasks that are attached to that module.
What I want to happen when one of those task buttons is selected is to reload the page and fill in the studentcode section and the task description section based on the task id.
Is there a way to set a variable (task_id) to default value task 1 and change it if a user clicks a button i.e. task 3,in a method or something, task_id would change to 3. Then reload the page to load Course X, Module Y, task Z.
Any help would be appreciated.