|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello
I have a problem: . . . <form action= "college_selected.asp" method="post"> Choose Your College or University: <select name="collegename"> <% do until rs.EOF response.write("<option") val = rs.fields("CollegeID") response.write (" value="&val&"") if rs.fields("collegename")=collegename then response.write(" selected") end if response.write(">") response.write(rs.fields("CollegeName")) rs.MoveNext loop %> ...... Lets say someone selected "Manhantan College" with the ID = 5 (value = "5") HOW DO I REQUEST THE VALUE or number (which is 5 in this case) in the next page which is "college_selected.asp"??? Thanks |
|
#2
|
|||
|
|||
|
request.form("collegename")
but keep in mind you may need a </select> tag which i do not see in the code you supplied |
|
#3
|
|||
|
|||
|
Thanks for reply. I do have <select> tags its just I didn't copy the whole code. The other thing is, what you wrote:
response.write("collegename") is totally correct IF i need the name of the college since drop down menu has two things: the name of the Item and the VALUE. What your code will do is select the name from the drop down menu NOT THE VALUE and that's is what I need - THE VALUE. Thanks though May be you will have answer for that I REALLY HOPE SO cuz i'm stuck in this for 3 days already... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Drop Down List |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|