Namelist not posting to asp
Posted: Tue Mar 22, 2005 6:02 pm
Below is my VXML and asp code. I'm testing posting to an asp page using a fully qualified domain name( I removed my test URL ).
My asp page is not getting any values passed in my field. Please help anyone.
<?xml version="1.0"?>
<vxml version="2.0">
<property name="txtent" value="test"/>
<menu id="Payment">
<prompt>Hi my name is John, and I will be assisting you with your payment. <break time="1s"/>
If you know your payment number, press or say 1.<break time="1s"/> Otherwise, press or say 2.
</prompt>
<choice dtmf="1" next="#get_PaymentID">
one</choice>
<choice dtmf="2" next="#NOID">
two</choice>
</menu>
<form id="get_PaymentID">
<field name="PaymentID" type="digits">
<prompt>
Please enter your payment number.
</prompt>
<filled>
<prompt>You entered <say-as type="acronym"><value expr="PaymentID"/> </say-as>. </prompt>
<submit next="asptest.asp" method="post" enctype="multipart/form-data" namelist="PaymentID txtent" />
</filled>
</field>
</form>
</vxml>
Here is my asp page
<?xml version="1.0"?>
<vxml version="2.0">
<%@ Language=VBScript %>
<%
Dim intVAPOfficeNo
intPaymentID =Request("PaymentID") & " "
Response.ContentType = "text/xml"
%>
<form id="counselor">
<block> <prompt>
The confirment number is <%= intPaymentID %> </prompt>
<exit/>
</block>
</form>
</vxml>
My asp page is not getting any values passed in my field. Please help anyone.
<?xml version="1.0"?>
<vxml version="2.0">
<property name="txtent" value="test"/>
<menu id="Payment">
<prompt>Hi my name is John, and I will be assisting you with your payment. <break time="1s"/>
If you know your payment number, press or say 1.<break time="1s"/> Otherwise, press or say 2.
</prompt>
<choice dtmf="1" next="#get_PaymentID">
one</choice>
<choice dtmf="2" next="#NOID">
two</choice>
</menu>
<form id="get_PaymentID">
<field name="PaymentID" type="digits">
<prompt>
Please enter your payment number.
</prompt>
<filled>
<prompt>You entered <say-as type="acronym"><value expr="PaymentID"/> </say-as>. </prompt>
<submit next="asptest.asp" method="post" enctype="multipart/form-data" namelist="PaymentID txtent" />
</filled>
</field>
</form>
</vxml>
Here is my asp page
<?xml version="1.0"?>
<vxml version="2.0">
<%@ Language=VBScript %>
<%
Dim intVAPOfficeNo
intPaymentID =Request("PaymentID") & " "
Response.ContentType = "text/xml"
%>
<form id="counselor">
<block> <prompt>
The confirment number is <%= intPaymentID %> </prompt>
<exit/>
</block>
</form>
</vxml>