Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove $PHP_SELF

  • Loading branch information...
commit 6ecf2e4c87f549494743614af7305a1aeac72dac 1 parent c3e01ed
moodler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/student.php
4 course/student.php
@@ -128,14 +128,14 @@
foreach ($users as $user) {
- echo "<p align=left><a href=\"{$_SERVER['PHP_SELF']}?id=$course->id&add=$user->id\"".
+ echo "<p align=left><a href=\"student.php?id=$course->id&add=$user->id\"".
"title=\"$straddstudent\"><img src=\"../pix/t/left.gif\"".
"border=0></a>&nbsp;&nbsp;$user->firstname $user->lastname, $user->email";
if ($search or $usercount > MAX_USERS_PER_PAGE) {
- echo "<form action={$_SERVER['PHP_SELF']} method=post>";
+ echo "<form action=student.php method=post>";
echo "<input type=hidden name=id value=\"$course->id\">";
echo "<input type=text name=search size=20>";
echo "<input type=submit value=\"$searchstring\">";
Please sign in to comment.
Something went wrong with that request. Please try again.