Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Downloading using Forms & multiple Options

Posted by: Anthony Sep 12 2006, 01:18 PM

Hi,

Can someone please help or advise me, about 5 or 6 years ago I use to make forms that had multiple options(from a dropdown list) for selecting a file and then clicking a submit button to download the file. Basically I'm after members of a club downloading instruction manuals without having a long list of links to separate files, its just to keep the webpage looking nice and neat. I've forgotten how to do the coding of it, after many attempts I still haven't got it working correctly.

Many thanks in advance.

Cheers

Tony.

Posted by: Christian J Sep 12 2006, 01:57 PM

See http://htmlhelp.com/faq/html/forms.html#form-navmenu and maybe also http://htmlhelp.com/faq/html/links.html#download-howto

Posted by: Anthony Sep 12 2006, 03:12 PM

QUOTE(Christian J @ Sep 12 2006, 07:57 PM) *

See http://htmlhelp.com/faq/html/forms.html#form-navmenu and maybe also http://htmlhelp.com/faq/html/links.html#download-howto


Hi Christian,

The code on the links you gave was for single files, I'd like one to download a single file but an option from several choices similar to this.

CODE

<!-- Start of FORM -->
<form method="get" enctype="No Method used" action="get">
<select name="">
  <option selected="" value=""></option>
  <option value="">File 1</option>
  <option value="">File 2</option>
  <option value="">File 3</option>
  <option value="">File 4</option>
</select>
<input type="submit" value="Get File">
</form><!-- End of FORM -->


It's a wierd one to code and get working correctly...
Cheers.

Tony.

Posted by: pandy Sep 12 2006, 03:49 PM

Follow the link in the first FAQ Christian linked to.

Posted by: Darin McGrew Sep 12 2006, 05:58 PM

Specifically, the FAQ http://htmlhelp.com/faq/html/forms.html#form-navmenu tells you how to make a form act like a link, and the FAQ http://htmlhelp.com/faq/html/links.html#download-howto tells you how to let people download files (i.e., just create a link to them). So really, only the first FAQ is necessary; the second one just tells you that the first one is all that you need.

Posted by: Christian J Sep 13 2006, 05:55 AM

QUOTE(Darin McGrew @ Sep 13 2006, 12:58 AM) *

So really, only the first FAQ is necessary; the second one just tells you that the first one is all that you need.


Yes, and maybe http://htmlhelp.com/faq/html/links.html#force-download would've been a better choice than http://htmlhelp.com/faq/html/links.html#download-howto

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)