This should be incredibly easy. But, I am having issues with the following.
Why am I not getting the value to write out? Thanks.

<%@ LANGUAGE="VBSCRIPT" %>
<% Response.Buffer = True %>

<html>
<head>
<title>testing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>

<FORM name="testing" target="_top" action="testing.asp">
<select name="testing">
<option value="first" selected>first</option>
<option value="second">second</option>
</select>
<input type="submit" name="Submit" value="Submit">
</FORM>

<%
strtesting = request.form("testing")
response.write (strtesting)
%>

</body>
</html>

RE: response.write issue by CoreyThomasMCSEMCSAMCDBA

CoreyThomasMCSEMCSAMCDBA
Fri Mar 14 14:09:00 CDT 2008

Remove the parenthesis and it should work. :0)

response.write strtesting



"RICK" wrote:

> This should be incredibly easy. But, I am having issues with the following.
> Why am I not getting the value to write out? Thanks.
>
> <%@ LANGUAGE="VBSCRIPT" %>
> <% Response.Buffer = True %>
>
> <html>
> <head>
> <title>testing</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <body>
>
> <FORM name="testing" target="_top" action="testing.asp">
> <select name="testing">
> <option value="first" selected>first</option>
> <option value="second">second</option>
> </select>
> <input type="submit" name="Submit" value="Submit">
> </FORM>
>
> <%
> strtesting = request.form("testing")
> response.write (strtesting)
> %>
>
> </body>
> </html>

Re: response.write issue by Joe

Joe
Sat Mar 15 06:36:27 CDT 2008



"RICK" <RICK@discussions.microsoft.com> wrote in message
news:32F445EA-F4F3-4433-B6CC-067487FD0752@microsoft.com...
> This should be incredibly easy. But, I am having issues with the
> following.
> Why am I not getting the value to write out? Thanks.
>
> <%@ LANGUAGE="VBSCRIPT" %>
> <% Response.Buffer = True %>
>
> <html>
> <head>
> <title>testing</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <body>
>
> <FORM name="testing" target="_top" action="testing.asp">
> <select name="testing">
> <option value="first" selected>first</option>
> <option value="second">second</option>
> </select>
> <input type="submit" name="Submit" value="Submit">
> </FORM>
>
> <%
> strtesting = request.form("testing")
> response.write (strtesting)
> %>
>
> </body>
> </html>
Probably because you have two 'testing' items. But you don't say what error
is occurring, is it not writing anything?
(Adding parentheses is also a problem for VBScript subs but if there is only
one argument it doesn't usually matter.)

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name