By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,911 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,911 IT Pros & Developers. It's quick & easy.

Retrieving Drop down menu value

P: 8
Hi am facing problem in retrieving the value selected from drop down menu in one page from the next page..Am using the following code to populate the drop down menu with values form the database.

<td width="169" >
<select id="states" name="states" style="display:" >
<%
while not rsstate.eof %>
<option value="<%=rsstate("state")%>"><%=rsstate("state")% ></option>
<%rsstate.MoveNext
wend
rsstate.Close

On submit when i try to retrieve the value using
request(states)..in the next page
It doesnt give me any value..
Can anybody please help me..
Nov 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: 65
Hi,

Try it now . . ..

states = request("states")

Enter the dropdown list name in doublequotes ""

If u have any queries mail me at mneduu@gmail.com
Thanks & Regards

(M. Nedu)
Nov 6 '06 #2

dswethar
P: 65
Also, its a good practise to use Request.Form("states") (If you have a form)
Nov 6 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.