Prompt a Download Dialog Box
Posted: Mon Dec 20, 2010 6:32 pm
Hi,
I am fairly new at pHp and am designing a website for my friends music studio. The Site is Simple:
A Main page with images showing for each song available for download
--->A main information page for each song with an image link
--------->takes you to a form to enter your email
-------------->the submit button links to a php which sends the info to the server email and redirects you to a confirmation page,
WHERE we would like the download dialog box for the file to open up as well
Right now I am just trying to get two windows to open when submit is clicked, the php code looks like this:
<?php
//--------------------------Set these paramaters--------------------------
// Subject of email sent to you.
$subject = 'Results from FMM form';
// Your email address. This is where the form information will be sent.
$emailadd = 'email@server.com';
// Where to redirect after form is processed.
$url = 'http://www.themoorelandsproject.com/SongConfirm.html';
$url =
'http://www.themoorelandsproject.com/Songfile.html';
***This second URL is not opening, I have also tried it with a comma after the first URL and still nothing.
Any help to get the two windows to open would be great.
Also, any advice to attach a .wav file to the second URL and have it open the Download Box would also be awesome.
***NOTE: I do not want any extra text links to start the Download Box, I want it to open automatically when the redirect happens.
Also, if there is a way around pop-up blockers from blocking the download box, any help with that would be cool too.
Thanks in advance,
Craig
I am fairly new at pHp and am designing a website for my friends music studio. The Site is Simple:
A Main page with images showing for each song available for download
--->A main information page for each song with an image link
--------->takes you to a form to enter your email
-------------->the submit button links to a php which sends the info to the server email and redirects you to a confirmation page,
WHERE we would like the download dialog box for the file to open up as well
Right now I am just trying to get two windows to open when submit is clicked, the php code looks like this:
<?php
//--------------------------Set these paramaters--------------------------
// Subject of email sent to you.
$subject = 'Results from FMM form';
// Your email address. This is where the form information will be sent.
$emailadd = 'email@server.com';
// Where to redirect after form is processed.
$url = 'http://www.themoorelandsproject.com/SongConfirm.html';
$url =
'http://www.themoorelandsproject.com/Songfile.html';
***This second URL is not opening, I have also tried it with a comma after the first URL and still nothing.
Any help to get the two windows to open would be great.
Also, any advice to attach a .wav file to the second URL and have it open the Download Box would also be awesome.
***NOTE: I do not want any extra text links to start the Download Box, I want it to open automatically when the redirect happens.
Also, if there is a way around pop-up blockers from blocking the download box, any help with that would be cool too.
Thanks in advance,
Craig