Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Music

GameFreak7744GameFreak7744 Posts: 36Member
How would you make a music selector, something that lets you select a music from a dropdown and then click go to play it? Is it evenb possible in PHP or do I need to use something else?

Comments

  • turbo_eagleturbo_eagle Posts: 14Member
    : How would you make a music selector, something that lets you select a music from a dropdown and then click go to play it? Is it evenb possible in PHP or do I need to use something else?
    :
    do something like this:
    (music.html)
    Music Selector

    Select Music:



    Music 1
    Music 2


    (music.php)
    <?php
    $mus = $_POST['mus'];
    ?>
    Music

    <?php echo "<embed src=$mus.wav>"; ?>



    That should work, check up on the embed command and stuff. I don't use music on my stuff.


Sign In or Register to comment.