simple form submission problem

I'm an ASP newbie, so please bear with me:

Can anyone tell me why the message boxes are not displaying
the values in the following:

This is the form page:

http://www.bytesizedsystems.com/aspfiles/default.asp

which has a form action of director.asp.

This is the code on the director.asp page:

<%@ Language=VBScript %>
<html>
<head>
<META name=VI60_defaultClientScript content=VBScript>

<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

</head>
<body>

<SCRIPT LANGUAGE=vbscript>
<!--
Dim radiovalue
Dim username
Dim usernumber

radiovalue = "<%Request.Form.Item("radionewcheck")%>"
username = "<%Request.Form.Item("textuserid")%>"
usernumber = "<%Request.Form.Item("textphoneno")%>"

MsgBox "Radio value is " + radiovalue
MsgBox "User Name is " + username
MsgBox "User Number is " + usernumber

-->
</SCRIPT>

</body>
</html>

Thanks in advance.
[1158 byte] By [codefinger] at [2007-11-17 14:49:19]
# 1 Re: simple form submission problem
I have not done a lot of ASP but you could try the following.

radiovalue = "<%Request.Form.Item('radionewcheck')%>"
username = "<%Request.Form.Item('textuserid')%>"
usernumber = "<%Request.Form.Item('textphoneno')%>"

Notice the use of single-quotes within the double-quotes. If you "View Source" of the director.asp page in the client browser, it has the following:

radiovalue = ""
username = ""
usernumber = ""
Sam Hobbs at 2007-11-8 0:08:47 >
# 2 Re: simple form submission problem
Hi.
The problem with the code is that you missed the '=' sign when you wrote the "<%...%>" it should be "<%=...%>"
for example:
radiovalue = "<%=Request.Form.Item("radionewcheck")%>"
:)
yossia at 2007-11-8 0:09:47 >
# 3 Re: simple form submission problem
Good catch. Going further <%=.....%> is equivalent to
<%Response.Write .... %>

Enjoy Asp...
SButler at 2007-11-8 0:10:40 >
# 4 Re: simple form submission problem
It's easy.
You trying to show MessageBox on server side but not on client side.

<SCRIPT runat=client language=vbscript>

</script>

default runat attribute is server.

Have a good day:)
Yalovetsky Igor at 2007-11-8 0:11:45 >
# 5 Re: simple form submission problem
Oh, I have made mistake.

default runat attribute set to client and you can't use Request object on client side:(

Bye
Yalovetsky Igor at 2007-11-8 0:12:44 >