...

View Full Version : problem creating a drop down menu and submit



RRice
07-25-2010, 07:53 AM
The code below is a download form,, the number after the P= are the index idents for each file to be downloaded..
The destination_folder is set for C:\temp as default location.

the code below works as needed for one file,,however i need to create a drop down list which will show all file names,and automatically throw the right ident for that file after the P=.
sounds simple enough but there are other sections that are tied to this form so the solution has to use the CFForm_1(this) else i'll have to redo all the other sections as well. as well as javascript
if anyone has a quick and clean way to do this i'd be very appreciative. i've pulled my hair out trying to find examples using this config and none are even close..or don't have a drop down menu

<form name="CFForm_1"
action="http://www.XXX.cfm?p=6D6F615CC&rt=2&st=2" method="POST" onsubmit="CFForm_1(this)">

<input name="destination_folder" id="destination_folder" type="text" value="C:\Temp"
maxlength="200" size="60" />

<input type="Submit" value="Resume">

thanks in advance, Rick

RRice
07-25-2010, 11:02 AM
OK , after pondering abit i finally got it to work with the drop down list...however now i have a new problem lol
it no longer will download to the c:\temp folder or any folder you type in.
.it defaults to c:\
below is the changes i made.
This isn't exactly what i wanted, but it's close to the point that i don't have to alter a whole lotta things in order to make it work with the rest of the code

i forgot to mention in the first posting that the whole link should
end up like this
e.g http://www.something.com/something.cfm?p=6D6F615C&rt=2&st=2&destination_folder=directory


<form>
<select name="menu">
<option value="http://www.something.com/something.cfm?p=6D6F615C&rt=2&st=2">DownLoad_1
</option>
<option value="http://www.something.com/something.cfm?p=C0F4D7FC&rt=2&st=2">DownLoad_2
</option>
</select>

<td valign="top"><input name="destination_folder"
id="destination_folder" type="text" value="C:\Temp" maxlength="200" size="60"/>

<input type="Button" onClick="location=this.form.menu.options[this.form.menu.selectedIndex].value
;" value="Continue">
</form>

RRice
07-27-2010, 02:40 PM
<form>
<select name="menu">
<option value="http://www.something.com/something.cfm?p=6D6F615C&rt=2&st=2">DownLoad_1
</option>
<option value="http://www.something.com/something.cfm?p=C0F4D7FC&rt=2&st=2& I can't get destination_Folder value to end up here when I click Continue">DownLoad_2
</option>
</select>

<td valign="top"><input name="destination_folder"
id="destination_folder" type="text" value="C:\Temp" maxlength="200" size="60"/>

<input type="Button" onClick="location=this.form.menu.options[this.form.menu.selectedIndex].value
;" value="Continue">
</form>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum