function getSongs () {
global $songs;
- $path = $baseDir . "../Songs/*.pro";
+ $path = "/opt/clearscm/songbook/Songs";
// Why didn't the previous one execute correctly?
- $songs = glob($baseDir . '../Songs/*.pro');
+ $songs = glob("$path/*.pro");
} // getSongs
function songsDropdown () {
global $songs;
- print "<form method=\"post\" action=\"webchord.cgi\" name=\"song\">";
+ print "<form method=\"get\" action=\"webchord.cgi\" name=\"song\">";
print "Songs: ";
print "<select name=\"chordpro\">";
$title = basename ($song, ".pro");
$artist = getArtist ($song);
+ print "<option value=\"$title.pro\">$title</option>";
+
if ($artist != "") {
$title .= " ($artist)";
} // if
-
- print "<option value=\"$song\">$title</option>";
} // foreach
print "<input type=\"submit\" value=\"Go\">";
$artists = getArtists ($songs);
- print "<form method=\"post\" action=\"displayartist.php\" name=\"artist\">";
+ print "<form method=\"get\" action=\"displayartist.php\" name=\"artist\">";
print "Artists: ";
print "<select name=\"artist\">";