so the aim is that the student will be redirected to moodle using iframe and after adding the assignment from external the student need to be logout ......thanks in advance:)
<?php session_start(); if(isset($_SESSION['key'])) { ?> <iframe src="http://localhost/moodle/moodle/mod/assign/view.php?id=4" width="100%" height="600px" align="center">please upload assingment</iframe> using this iframe i want to show the student only the upload button <?php } else {enter code here header("location:login.php"); } ?>
2.1m questions
2.1m answers
60 comments
57.0k users