close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Why will the first file download and not the second?

Thread began 12/25/2009 2:25 pm by larry289409 | Last modified 12/25/2009 4:39 pm by larry289409 | 1253 views | 1 replies

larry289409

Why will the first file download and not the second?

My code is below

I've looked, and the code is exactly the same for the two downloads. Only the first download listed in the code will work. There is no response when the second button is clicked.

I'm stuck.

Thanks.


Larry


My code:

<?php require_once("../WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult2");
if(isset($_POST["Fields"])){
WA_DFP_DownloadFile("WA_DownloadResult2", "../music/", "Fields Of People.m4a", "Fields Of People.m4a", false, false, false, "", "", "", "");
}?>
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["LastThing"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "../music/", "The Last Thing On My Mind.m4a", "The Last Thing On My Mind.m4a", false, false, false, "", "", "", "");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.oneColElsCtr #container {
width: 46em;
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColElsCtr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
.style1 {color: #FF0000}
.style2 {
font-size: 12px
}
-->
</style></head>

<body class="oneColElsCtr">

<div id="container">
<div id="mainContent">
<form id="form1" name="form1" method="post" action="music.php">
<h1> &quot;Fields of People&quot;</h1>
<h3>The Move - From the <span class="style1">Shazam!</span> LP</h3>
<p>Idealist song from 40 years ago. It's very seasonal, so I'll wish you a &quot;Gut Yuntif&quot; and hope that you enjoy it. </p>
<p>I had to fix it a bit, because they had certain ideas (and obligations) when making music at that time. I removed an incongruous bridge that just didn't really fit, and left off the extended electric sitar section at the end, which had nothing to do with the rest of the song, but was a 60's &quot;thing&quot;</p>
<p>
<label>
<input type="submit" name="Fields" id="Fields" value="Download Fields of People" />
</label>
</p>
<label></label>

</form>
<form id="form2" name="form2" method="post" action="music.php">
<h1>&quot;The Last Thing On My Mind&quot;</h1>
<h3>The Move - From the <span class="style1">Shazam!</span> LP</h3>
<p>A Tom Paxton song, played as a tribute to the Byrds. Carl Wayne, the vocalist, was one of the great unknown singers of the 60's - I think that he's got emotion without <a href="#schmaltz">schmaltz</a>. He wanted the band to do more things like this, and they went on to become the Electric Light Orchestra without him.</p>
<p>I excised a rather long &quot;reverse guitar&quot; solo - I'm sure it must have been exciting to listen to back then, but it didn't pass the test of time.</p>
<p>
<label>
<input type="submit" name="LastThing" id="LastThing" value="Download Last Thing" />
</label>
</p>
<p>
<label></label>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>
<p class="style2"><a name="Schmaltz" id="Schmaltz">Etymology: Yiddish shmalts, literally, rendered fat<br />
Date: 1935<br />
1 : sentimental or florid music or art</p></a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></p>
<p>&nbsp; </p>
<p>&nbsp;</p>
<!-- end #mainContent --></div>
<!-- end #container --></div>
</body>
</html>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...