It is useful to be able to create links to these resources so that students, staff and parents can access thenm without having to remember the specific URL.
Within a moodle course
- Add a recource: Link to a file or website
- Location: URL of php file
- Display Advanced: variable name: user; Choose parameter: user - id
<?php
$passed_from_url = $_GET['user'];
$destination_string ="https://www.school..com/students/"+$passed_from_url+"/default.htm"
header( $destination_string ) ;
?>
No comments:
Post a Comment
Comment or Send a Message
You can use this form to send a message OR make a comment as your contribution is NOT published automatically, but sent to Stephen for consideration.
You can select "anonymous" from the drop down menu below if you do not have a google account.