We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 545ab9c commit a01ea55Copy full SHA for a01ea55
index.php
@@ -18,7 +18,8 @@
18
}
19
$files = glob("$dir/*.xt");
20
foreach ($files as $file) {
21
- echo '<option value="' . htmlspecialchars($file) . '">' . htmlspecialchars(basename($file)) . '</option>';
+ $checked = ($file == $_REQUEST['file']) ? 'selected="selected"' : '';
22
+ echo '<option value="' . htmlspecialchars($file) . '" '.$checked.'>' . htmlspecialchars(basename($file)) . '</option>';
23
24
?>
25
</select>
0 commit comments