Forum Moderators: open

Message Too Old, No Replies

embedding problem

Trying to embed files using PHP

         

grassmonk

3:02 am on Mar 7, 2005 (gmt 0)

10+ Year Member



Hey all,

I'm not sure if this belongs in this forum or the PHP, but I think it goes here. Anyway, I'm trying to embed mp3 and wav files on my site, but trying to send them to the browser using a PHP script that checks if the user has rights to access the file. My HTML looks like this:

<embed src="getfile.php?id=5&md5=abcdefg">

My getfile.php script checks the md5 against the md5 of some table values and sends the mp3 out if everything passes. This method works fine if I simply have a link (<a href="getfile.php?id=5&md5=abcdefg">Get File</a>) but I cannot for the life of me figure out how to be able to embed the file using this method. Can anyone point me in the right direction? I'm also going for cross-browser compatibility, namely IE and Mozilla/Firefox/Netscape.

Thanks in advance.

tedster

1:03 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry I have no real guidance for your maIN ISSUE - but maybe bumping this message will attract the right pair of eyes.

I should mention, however, that although the <embed> element is supported by both Internet Explorer and Netscape, it is not a standard HTML or XHTML element. The World Wide Web Consortium (W3C) recommends using the <object> element instead.