Regarding this ticket,
I have made an effort to eliminate the usage of $_GET and $_POST in the studentquiz module and adopt an alternative approach.
To achieve this, I have added parameters to the URL and subsequently reloaded the page with the updated URL. Consequently, we can obtain these parameters using the built-in functions optional_parameter and required_parameter.
However, in certain cases, specifically in file view.php at line 63, the request includes dynamic parameters such as 'q_123', 'q_456', and so on. Unfortunately, these parameters cannot be retrieved through any other means. Therefore, I have resorted to using $_REQUEST to access them.
Could you kindly assist me in reviewing these changes? Thank you.
Hi @timhunt ,
Regarding this ticket, I have made an effort to eliminate the usage of $_GET and $_POST in the studentquiz module and adopt an alternative approach.
To achieve this, I have added parameters to the URL and subsequently reloaded the page with the updated URL. Consequently, we can obtain these parameters using the built-in functions optional_parameter and required_parameter.
However, in certain cases, specifically in file view.php at line 63, the request includes dynamic parameters such as 'q_123', 'q_456', and so on. Unfortunately, these parameters cannot be retrieved through any other means. Therefore, I have resorted to using $_REQUEST to access them.
Could you kindly assist me in reviewing these changes? Thank you.