|
-
Jun 18th, 2001, 10:03 AM
#1
Thread Starter
Lively Member
List box does not work
This is the code I create below, but it does not work. I got error message for this line Response.Write(Request.Form("LST1")(1))
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form action="test2.asp" method="post">
First name:
<input name="fname" value="Donald" >
<br>
Last name:
<input name="lname" value="Duck" >
<P> </P>
<P><SELECT id=LST1 name=LST1 size=2 style="HEIGHT: 153px; WIDTH: 228px" ><OPTION
value=TTTT>TTT<OPTION value=WWW>WWW
</SELECT></P>
<P>
<br>
<input type="submit" value="submit"> </P>
</form>
<%
Response.Write(Request.Form("LST1")(1))
%>
<P> </P>
</BODY>
</HTML>
-
Jun 18th, 2001, 10:30 AM
#2
Addicted Member
look at the other post...
-
Jun 19th, 2001, 02:47 AM
#3
Frenzied Member
Option tags are block tags. You have to close them:
Code:
<OPTION value=TTTT>TTT</OPTION>
<OPTION value=WWW>WWW</OPTION>
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|