|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > VXML: <submit> undefined variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|