Problems picking up namelist variable in ASP
Posted: Tue Mar 16, 2004 9:49 am
I have a .vxml file that submits to an ASP page. Within that ASP page, I'm trying to grab the variable passed in the namelist. When I just pass a name:value pair in my address bar, my asp page picks it up and displays the appropriate vxml response.
Here's my .vxml file.
<?xml version="1.0"?>
<vxml version="2.0">
<form id="counselor">
<field name="id">
<grammar
type="application/x-regexp">[0-9]{10}</grammar>
<prompt>
Enter the ten digit VAP Office number.
</prompt>
<filled>
You entered <value expr="id"/>.
<submit next="counselorwrite.asp"
namelist="id"/>
</filled>
</field>
</form>
</vxml>
And here's my asp page that can't seem to pick up the namelist.
<?xml version="1.0"?>
<vxml version="2.0">
<%@ Language=VBScript %>
<%
Dim intVAPOfficeNo
intVAPOfficeNo=Request("id")
Response.Write intVAPOfficeNo
Response.ContentType = "text/xml"
%>
<form id="counselor">
<block>
<audio>
Counselor is <%= intVAPOfficeNo %>
</audio>
<exit/>
</block>
</form>
</vxml>
Thanks
Here's my .vxml file.
<?xml version="1.0"?>
<vxml version="2.0">
<form id="counselor">
<field name="id">
<grammar
type="application/x-regexp">[0-9]{10}</grammar>
<prompt>
Enter the ten digit VAP Office number.
</prompt>
<filled>
You entered <value expr="id"/>.
<submit next="counselorwrite.asp"
namelist="id"/>
</filled>
</field>
</form>
</vxml>
And here's my asp page that can't seem to pick up the namelist.
<?xml version="1.0"?>
<vxml version="2.0">
<%@ Language=VBScript %>
<%
Dim intVAPOfficeNo
intVAPOfficeNo=Request("id")
Response.Write intVAPOfficeNo
Response.ContentType = "text/xml"
%>
<form id="counselor">
<block>
<audio>
Counselor is <%= intVAPOfficeNo %>
</audio>
<exit/>
</block>
</form>
</vxml>
Thanks