Email MP3 file after playing

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a list of mp3 files (1 minute long) for web page vistors to
choose to listen to.

I would like for them to click on the link, have a popup window open
playing the mp3 file and in the same popup window, also have an email
form for them to send either the link or the mp3 file to a friend.

How can this be accomplished?

I host my own mp3 files, i have php, and MySQL on the webserver.


Re: Email MP3 file after playing wrote:
Quoted text here. Click to load it


You'll need to do it in javascript.  PHP can't popup windows.

Try comp.lang.javascript.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: Email MP3 file after playing

Quoted text here. Click to load it

Assuming you've already got the popup window portion working with  
JavaScript, you can take the submitted form data (which includes the  
recipient's email address) and either email a link to the file or attach the  
file as an attachment. The former is the recommended method. Most people  
probably wouldn't appreciate receiving unsolicited email attachments.  

Site Timeline