W3C home > Mailing lists > Public > www-talk@w3.org > May to June 2003

<submit> undefined variable

From: Vijay William J <VWilliam@NIIT.com>
Date: Fri, 16 May 2003 16:03:35 +0530
Message-ID: <693C7BF04114D411BB3800B0D02192CE05B7BB8C@del-d190okh-es2.ltb.in.niit.com>
To: www-talk@w3.org

Hi Folks,
I'm back with another problem.
This time, 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.
Have a happy weekend folks!

Regards,
Vijay Williams












----------------------------------------------------------- NOTICE
------------------------------------------------------------  This email and
any files transmitted with it are confidential and are intended solely for
the use of the individual or entity to which they are addressed. Any use,
distribution, coping or disclosure by any other person is strictly
prohibited. If you received this transmission in error, please notify the
sender by reply email and then destroy the message. Opinions, conclusions
and other information in this message that do not related to official
business of NIIT shall be understood to be neither given nor endorsed by
NIIT when addressed to NIIT Clients, any information contained in this email
is subject to the terms and conditions in governing client contract.
Received on Friday, 16 May 2003 06:42:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:27 GMT