Hello Moodlers.
I want to be able to have my front-end website, (via some method, automatically enrol a user in Moodle and assign then to an appropriate course, based on choices they make on the front-end website (which is not Moodle).
Normally I would just write a bit of code to run a SQL insert and enter the user into the user table and then the course number/ID in the course link table. Is this the best way to do it, or is there a simpler and more recognised way of doing this? Perhaps via a widget/plugin etc? Or a different way that I'm just not aware of?
(Using V 2.5.1)
Thanks!
Hugh. x