Play.php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dalka
Forum Newbie
Posts: 2
Joined: Sun Mar 01, 2009 7:00 am

Play.php

Post by dalka »

Hi everyone i maked a little code that i call my music as an id so when i call my music it plays media player automatic
so i want to play my music a pop up window embeded media player here are what i did.

link code

Code: Select all

<b><A HREF="javascript;void(1)"onclick="window.open('playmedia.php?id=1"; ?>','height=300, width=400, adressbar=0, resizable=0, scrollbars=0')">Listen music1</a></b>
 
playmedia.php code

Code: Select all

<? 
$id = $_GET['id']; //you should only allow numbers 
 
If ($_GET['id']==1){ 
$file = $map.'music1.mp3'; //this says what the id is 
}
include($file ); //includes the document the link asked for. 
?>
can someone help me the full code
thanks all
Post Reply