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> "Fields of People"</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 "Gut Yuntif" 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 "thing"</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>"The Last Thing On My Mind"</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 "reverse guitar" 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> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </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> </p>
<p> </p>
<p> </p>
<p> </p>
<p></p>
<p> </p>
<p> </p>
<!-- end #mainContent --></div>
<!-- end #container --></div>
</body>
</html>