XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 27th, 2003, 09:54 AM
vwilliam vwilliam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: New Delhi
Posts: 1 vwilliam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
VXML: <submit> undefined variable

Hi,
Can you please help me on this. I have a root document that looks similar to this:

-------------------------Root VXML Document-----------------------
<?xml version="1.0" encoding="iso-8859-1"?> <vxml version="1.0">
<var name="answer" />

<form id="abc">
....
<field name="answer" type="digits">
<prompt>
Please provide your employee code:
</prompt>
<catch event="help nomatch noinput">
.....
</catch>
<filled>
<if cond="answer == false">
Goodbye.
<exit/>
</if>
<submit next="http://server-name/voice/emp_detect.php"
method="post" namelist="answer" />
</filled>
</field>
</form>
</vxml>
------------------------------------------------------------------

The emp_detect.php looks like this:
----------------------Emp_detect.php------------------------------
<?php
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
?>
<vxml version="1.0" application="http://server-name/voice/RootVxml.vxml" > <form>
<block>
<?php
print "Hello "."<value expr=\"application.answer\" />";
?>
</block>
</form>
</vxml>
------------------------------------------------------------------


When I execute the app, the "Hello" message is heard followed by "undefined". To sum it up, I get to hear, "Hello Undefined". The value of "answer" variable is not being passed
from the root document to the child document.
Would be very helpful, if anyone can tell me where I'm going wrong.

Regards,
Vijay Williams

Reply With Quote
  #2  
Old August 11th, 2004, 07:57 PM
M3atP13 M3atP13 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 M3atP13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question trying to learn VXML

I have input this into tellme srstchpad. it only plays the first block and then drops the call. can anyone tell me why, or is the tellme scratchpad hosed?

<?xml version="2.0"?>
<vxml version="2.0">
<form>
<block>welcome to the unofficial vxml new england patriots hotline, this site will be updataed daily, and continue to expand its patriots coverage. </block>
</form>

<form>

<block>new england patriots football.</block>

</form>
</vxml>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > VXML: <submit> undefined variable


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT