Quantcast
Channel: User lfx - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Answer by lfx for PHP - Drop down list to display .txt contents

$
0
0

This is quick solution, but highly insecure, use it only as example, how could be done, but shouldn't:

<?

// your page code here// this is body where you want to put song lyrics

file_get_contents($_GET['songName'].".txt")

// else..

?>

in meniu:

<a href="songs.php?songName=song1">song1</a>

Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>