I want too play two audio files using PHP. First file should play first and when it stops the second one should start playing. I have the following code but the problem is that both files are getting played simultaneously and it's really getting mixed up.
<?php
$y = 2;
$z = 3;
$filea = "bflat.mp3";
$fileb = "SUUCgrcp.mp3";
if ($y == 2) {
echo "<embed src=\"$filea\" hidden=\"true\" autostart=\"false\"></embed>";
}
if ($z == 3) {
echo "<embed src=\"$fileb\" hidden=\"true\" autostart=\"false\"></embed>";
}
?>