Jump to content

jmicah

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by jmicah

  1. I just found the answer to my question with a little more searching.The solution is to create a php file like so

    <?header('Content-type: audio/mpeg');header('Content-Disposition: attachment; filename="audioclip.mp3"');?>

    Then just link to the php file

    <a href="download.php" target="_blank">Download MP3</a>

    Hope this helps someone else in the future.

  2. Thanks for the response Ingolme.I tried using type but it still tries playing the mp3 in the browser. I tested with Firefox and Safari.I'm looking for a solution similar to when you click a link and it pops up an alert asking if you want to "Run" or "Save" the file.

  3. I'm trying to create a link that would allow the user to download an mp3. I thought this would work

    <a href="clip.mp3">Download Here</a>

    but it just takes me to a seperate page that plays the mp3.I know you could just right click and save target as but I was hoping to make it easier for the user.I've been searching around for a few days with no luck. Any help out there?Thanks in advance.

×
×
  • Create New...