Direction Needed on Passing Parameters to a HTML Resource

Direction Needed on Passing Parameters to a HTML Resource

by Ralph Blakeslee -
Number of replies: 2
I would like to pass into resource-html document the student’s last name, first name and the course title. I see that Moodle allows me to do this, but I am clueless as to how to set this up in my html document.

Any help is greatly appreciated.

Ralph
Average of ratings: -
In reply to Ralph Blakeslee

Re: Direction Needed on Passing Parameters to a HTML Resource

by Ralph Blakeslee -
I just need a little help please...
In reply to Ralph Blakeslee

Re: Direction Needed on Passing Parameters to a HTML Resource

by Ralph Blakeslee -
Well, I was able to figure this out myself. In the event that someone else needs some guidance here is how it works:

After naming your parameters in the right hand in the right column use those names in your document with the print function like this

Parameter: Course - Full Name
Name: fullname
Code: opening bracket ? print($fullname)? closing bracket

The file must be located in you Moodle directory, so it can not be an uploaded file.

Example: http://yoursite.com/moodle/resource.php

Ralph