hi
i have the following complication. i have created a form which contains a drop-down list and a submit-button, which streams the file selected in the list. recently, i have been asked to add a download option, and the logical step would be to add a 'download'-submit button as well, which would do the same action, but should link to the mp3-counterpart of the selected part.
is it possible to have more than one submit-button in a single form (with different actions), without linking to outside scripts? if yes, how? and if not, how would i accomplish this with an outside script?
here is the current form:
<?php
define("DIR", "other/");
define("FILENAME", "Name");
echo "<FORM ACTION=\"\" METHOD=POST onSubmit=\"return dropdown(this.parts)\">";
echo "<select name=\"parts\"><option value=\"\"> - Select Part - </option>";
$file = DIR.FILENAME."01.ram";
echo "<option value=$file>Part 1</option>";
$file = DIR.FILENAME."02.ram";
echo "<option value=$file>Part 2</option>";
$file = DIR.FILENAME."03.ram";
echo "<option value=$file>Part 3</option>";
$file = DIR.FILENAME."04.ram";
echo "<option value=$file>Part 4</option>";
$file = DIR.FILENAME."05.ram";
echo "<option value=$file>Part 5</option>";
echo "</select>";
echo " <INPUT TYPE=SUBMIT VALUE=\"Stream!\">";
echo"</FORM>";
this is really important to me, so any help is much appreciated.
best regards & thanks in advance
pygmalion