Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StudentQuiz: Must not refer to GET or POST in code #667798 #454

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BruceGoodGuy
Copy link
Contributor

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.

@timhunt timhunt force-pushed the main branch 3 times, most recently from cfaee3b to 8f4fe71 Compare July 17, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant