Page 1 of 1

Beginner to PHP

Posted: Wed Apr 24, 2002 5:54 am
by douga
:roll: I am very very new to PHP. I have a situation that I know can be resolved by PHP - I just have no idea how.

I have several Windows Media audio files that are going to be played in an embeded player in a pop-up window. The thing is - instead of having an html page for each audio file - can I have 1 html page with all the object embed info, and then when they click the link, that determines which file is played.

I'm sure it's not complicated. It's just launching the window, having some kind of "include" function where the filename goes and using PHP to tell it what the filename is.

If anyone can tell me how this could be done it would be greatly appreciated.

Thanks!

Posted: Wed Apr 24, 2002 8:31 am
by enygma
Just use Javascript to open the window, and give the window.open() function a path like "foo.php?file=blah.mpg" and then the popup will know what file to play when it reads $blah

-enygma