Hi,
I'm trying to create a system in which I have two redirections from one page. Basically I have a list of mp3s. You click on the link to the mp3, and if calls playfile.php?name=<filename>.
I then want playfile.php to record in the database what file I play (which I have working fine), then play the file (through the browsers mp3 association). and then return the user back to the listing.
At the moment I can get it to play the file and not return the user back to the index, or, return the user to the index and not play the file.
I have tried various combinations of meta tags, header() functions, and javascript snippets. But I can't get the page redirect twice, (of course I can't, getting a page to redirect twice in a controdiction in terms, sort of!)
So how can I get my script to play the file, and then forward the user back to the index?
Thanks,
-- Coops