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
Prompt a Download Dialog Box
Moderator: General Moderators
-
cpetercarter
- Forum Contributor
- Posts: 474
- Joined: Sat Jul 25, 2009 2:00 am
Re: Prompt a Download Dialog Box
The code in your posting doesn't do anything. It simple assigns values to some variables. Could you post the contents of, say, AFewMoreTimessubmit,php so that we can see what you are doing. (Please use the 'php code' button to place 'code' tags around the php code as it makes it much easier to read).