I can POST from voiceXML, but I can't pick up namelist varia
Posted: Sat Nov 22, 2003 1:28 am
Here are a couple of code snippets:
voiceXML code:
<subdialog name="result" src="#getdriverslicense" namelist="myname">
<param name="birthday" expr="'February 10th, 1970'"/>
<filled>You entered <value expr="result.drivelicense"/>.
<submit next="http://prairieblue.com/vxml/base/TestResponse.php"
method="post"
namelist="result.drivelicense birthday"/>
</filled>
</subdialog>
corresponding php code:
if (isset($_POST['birthday'])) ProcessFormSet();
if (!isset($_POST['birthday'])) ProcessFormClr();
The code always executes the !isset path, ProcessFormClr();
Do you have an example of a matched pair of XML/php code that connects better than this?
Thanks.
voiceXML code:
<subdialog name="result" src="#getdriverslicense" namelist="myname">
<param name="birthday" expr="'February 10th, 1970'"/>
<filled>You entered <value expr="result.drivelicense"/>.
<submit next="http://prairieblue.com/vxml/base/TestResponse.php"
method="post"
namelist="result.drivelicense birthday"/>
</filled>
</subdialog>
corresponding php code:
if (isset($_POST['birthday'])) ProcessFormSet();
if (!isset($_POST['birthday'])) ProcessFormClr();
The code always executes the !isset path, ProcessFormClr();
Do you have an example of a matched pair of XML/php code that connects better than this?
Thanks.