LMSouq
moodle-core Open

Passing userid from Moodle to an external URL

AN
Anin Smith
1 month ago
3 views
Problem Description
I am looking to include URLs in each Moodle course that points to an external site. I'd like to pass the userid and course ID as GET parameters in the URL to the other site. Are there macros or variables in moodle that will be replace with userid or courseid ? An example - I want to include a URL like http://www.example.com/cgi-bin/index.cgi?userid=<user>&courseid=<course> I am hoping that there is a way to have courseid and user in the URL above be automatically populated by moodle correctly.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base