|
@@ -83,8 +83,14 @@ $result = $oauth->sign(array(
|
|
|
<title>title</title>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <form action="<?php echo $result['signed_url'] ?>" name="ltiLaunchForm" method="post" encType="application/x-www-form-urlencoded">
|
|
|
- <input type="submit" value="Press to continue to external tool"/>
|
|
|
+ <form action="<?php echo $tool->getLaunchUrl() ?>" name="ltiLaunchForm" method="post" encType="application/x-www-form-urlencoded">
|
|
|
+ <?php
|
|
|
+ foreach($result["parameters"] as $key => $values) //Dump parameters
|
|
|
+ {
|
|
|
+ echo("<input type='hidden' name='$key' value='$values' />");
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ <input type="submit" value="Press to continue to external tool"/>
|
|
|
</form>
|
|
|
|
|
|
<script language="javascript">
|