473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP/HTML

Hi,

I am rather new to ASP so please forgive any
ignorance... I have an ASP page that contains 3 drop
down lists, I also have 3 hyperlinks, what I want to do
is to when the user clicks on the hyperlink that the
hyperlink passes the values of the 3 drop down lists as
part of the link. e.g. The values of the drop down lists
are 01, 07, 2003 I want the hyperlink to be "locate.asp?
d=01&m=07&y=2003"

Help?
Jul 19 '05 #1
2 1770
Tim Johnson wrote on 07 jul 2003 in
microsoft.public.inetserver.asp.general:
I am rather new to ASP so please forgive any
ignorance... I have an ASP page that contains 3 drop
down lists, I also have 3 hyperlinks, what I want to do
is to when the user clicks on the hyperlink that the
hyperlink passes the values of the 3 drop down lists as
part of the link. e.g. The values of the drop down lists
are 01, 07, 2003 I want the hyperlink to be "locate.asp?
d=01&m=07&y=2003"

ASP is serverside code, and you are only asking for clientside code.

you can do this as a <form method=get>, but it rather gets out of the scope
of this asp ng.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

"Tim Johnson" <ti**@smithscity.co.nz> wrote in message
news:0d****************************@phx.gbl...
Hi,

I am rather new to ASP so please forgive any
ignorance... I have an ASP page that contains 3 drop
down lists, I also have 3 hyperlinks, what I want to do
is to when the user clicks on the hyperlink that the
hyperlink passes the values of the 3 drop down lists as
part of the link. e.g. The values of the drop down lists
are 01, 07, 2003 I want the hyperlink to be "locate.asp?
d=01&m=07&y=2003"

Help?


here is a sample below

you can change the method atribuite on the form to GET if you want, but then
you need to replace "Request.Form" to Request.QueryString

<%
list1 = Request.Form("select1")

list2 = Request.Form("select2")

Response.Write list1 & " " & list2

%>
<FORM action="iis.asp" method=POST>
<SELECT id=select1 name=select1>
<option>a</option>
<option>b</option>
<option>c</option>
</SELECT>

<SELECT id=select2 name=select2>
<option>1</option>
<option>2</option>
<option>3</option>
</SELECT>

<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form>
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
1
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML...
33
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
9
by: Patient Guy | last post by:
Taking the BODY element as an example, all of its style attributes ('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01, a fact noted in the DOM Level 2 HTML specification. ...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.