Re: Hyperlink from drop-down box - is this possible?

From: Jon Spivey (jons_at_mvps.org)
Date: 12/07/04


Date: Tue, 7 Dec 2004 13:18:00 -0000

Hi Linda,
To add parameters you'd use a form - something along these lines
<form method="get" action="page.asp">
<select name="ProductId">
<option value="1">Widgets</option>
<option value="2">Grommets</option>
etc....
</select>
</form>
Then you can retrieve the paramater with
<%
intProductId = request.querystring("ProductId")
%>

-- 
Cheers,
Jon
Microsoft MVP
"Linda D" <Linda D@discussions.microsoft.com> wrote in message 
news:5C14C113-771F-46DB-AAF5-4EA7BC8B49F6@microsoft.com...
>I also need to hyperlink to an .asp with parameters based on the selection.
>
> "Steve Easton" wrote:
>
>> This should do it if you can populate value
>>
>> <form>
>> <select id="setit">
>> <option selected>Select a page</option>
>> <option value="page1.htm">Page 1</option>
>> <option value="page2.htm">Page 2</option>
>> <option value="page3.htm">Page 3</option></select>
>> <input type="button" value="Go"
>> onclick="javascript:window.open(setit.options[setit.selectedIndex].value)">
>> </form>
>>
>>
>> -- 
>> Steve Easton
>> Microsoft MVP FrontPage
>> 95isalive
>> This site is best viewed............
>> ........................with a computer
>>
>> "Linda D" <Linda D@discussions.microsoft.com> wrote in message
>> news:A464810D-4006-441D-817B-2FE4CCC4A994@microsoft.com...
>> > I have a drop down box that is populated using the database results 
>> > wizard
>> > (into an Access database).  How can I use the selection to jump to 
>> > another
>> > page?  There doesn't seem anywhere I can hyperlink although if I bring 
>> > the
>> > results back as a list this can be achieved.
>>
>>
>> 

Loading