ok then lets see...
for index.html (or wherever u have all the links), put this:
HTML:
<a href="play.php?song=happybirthday">Click Here to Listen to Happy Birthday</a>
in the place where u wanna put the links. Change the part of "happybirthday" in the link to whatever the filename of the file is.
EXAMPLE: If the file you want to play is londonbridge.wmv, the link in the href tags would be "play.php?song=londonbridge" notice that the name of the file is the same as song=*FILENAME*
make a page called "play.php" and add all the html you want in it (like the layout, any links, etc).
In the part of the page where you want the video to play, put this code:
PHP:
<embed src="<?php echo($song); ?>.wmv" quality=high width="500" height="500">
</embed>
if its in a subfolder (the song) just add the necessary stuff around it:
PHP:
<embed src="songs/<?php echo($song); ?>.wmv" quality=high width="500" height="500">
</embed>
Then, underneath this code you can put something like this:
PHP:
<p>Add this movie to your site! Copy and paste the code below:</p>
<textarea cols="20" rows="5">
<embed src="http://www.yourdomain.com/songs/<?php echo($song); ?>.wmv" quality=high width="500" height="500">
<br>
<font size="1"><i>Brought to you by <a href="www.yourdomain.com">YourDomain.com</a></i></font>
</textarea>
<p>Please do not remove the credit line.</p>
And that's all there is to it! Remember, the file that plays the music needs to be play.php, not play.html.
I hope you can use this; I just put it together so if there are bugs, please tell me.
How about some NP$ for my efforts? :hehe: