We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Namelist not posting to asp

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
nehioro
Posts: 6
Joined: Mon Mar 21, 2005 1:44 pm

Namelist not posting to asp

Post by nehioro »

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>

Alexey
Posts: 4
Joined: Tue Sep 07, 2004 4:00 pm

Seems I have same problem

Post by Alexey »

Check if you receive HTTP GET request

Good luck

nehioro
Posts: 6
Joined: Mon Mar 21, 2005 1:44 pm

Post by nehioro »

Get requst works.
Thanks.

Any reason why post does not work?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Issue with ASP code as opposed to IVR code

Post by support »

While I can't help you with your asp code since my expertise is IVR code specific, I did notice that in your submit namelist you specify "txtent" which is a property value, not an ecmascript value. That may be causing you some trouble. If you wish to pass txtent=test into your asp script, you should use <var name="txtent" expr="'test'"/> instead of the <property> tag.

Post Reply