Using a list to jump to a chosen URL

Here's the code. Notice that the form uses the GET method so the data will be passed to the page called FormJumpRespond.asp using a 'querystring' added to the end of the URL. This page doesn't contain any server script so does not need to be saved as an ASP page.

<form action="FormJumpRespond.asp" method="get">
<SELECT NAME="wheretogo">
<OPTION SELECTED VALUE="fun">Fun</OPTION>
<OPTION value="news">BBC News</OPTION>
<OPTION value="best">Possums Nest</OPTION>
<OPTION value="civ">CIV in French</OPTION>
<OPTION value="civissa">CIV-ISSA in English</OPTION>
</SELECT>
<input type=submit value="Go!">
</form>

The page that this page sends the data to, called FormJumpRespond.asp, redirects to your chosen destination immediately so you never see the FormJumpRespond.asp page. Here, then, is its code:

<html><body>
<% ' ASP program that redirects to URL
where=Request.QueryString("Wheretogo")
Select Case where
case "civissa"
	response.redirect "http://www.civissa.org"
case "civ"
	response.redirect "http://www.civfrance.com"
case "best"
	response.redirect "http://www.possumsnest.com"
case "news"
	response.redirect "http://news.bbc.co.uk"
case "fun"
	response.redirect "http://www.dilbert.com"
End Select
%>
</body></html>