enrolment key

enrolment key

by paul walker -
Number of replies: 2
Hi Folks

Is it possible to parse the enrolment key to the enrolment key field using a 'get' variable.

Reason being is that I have two modules (1 and 2) and on completion of a quiz in mdule a link is provided to module two which has an enrolment key. Id like to dynamically populate the enrolment key field with the enrolment key

I am using the following code to attempt this but it does not work

<a href="http://www.mycourse.com/course/view.php?id=3&password=myPassword">Module 2 </a> - the password is: <font color="red">brighton</font>


kind regards
Average of ratings: -
In reply to paul walker

Re: enrolment key

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Maaaaybe.... you would need to examine the form for the enrollment key entry and make sure you correctly supply *all* the parameters is expects.

Where you might come unstuck is if it wants the 'sesskey' value. I don't think you'll be able to populate that as it is different for every user.
In reply to Howard Miller

Re: enrolment key

by paul walker -
Thanks for the reply. I guess it's not that vital so I'll plod on and just supply them with the password

ta!