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!
can someone tell me how to get the download part of this to work
the $file gets the correct information for the embed part but it dosn't work for anything after that is ther something i need to do to get it to display after
echo "<embed src=\"../audio/audio_files/".$file."\" autostart=\"false\" loop=\"false\" height=\"45\" width=\"170\"></embed>";
echo '<br/>';
echo "<a href=/audio/audio_files/".$file."\" target="_blank">Download</a> (Right click and save target as)";
Could be wrong but I'm pretty sure that is the proper syntax for calling a href with a variable. I've used that exact syntax to show a file using a php script before.