Jump to content


Photo

php voiceXML


  • Please log in to reply
2 replies to this topic

#1 eric07

eric07
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 01 May 2006 - 07:03 PM

hi, i am new to php and I want to voiceXML into php. I was told to use print or echo statements to do this. I have tried to do this but I keep getting errors. Can someone help PLEASE. see below voiceXML code that needs to be into PHP.

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE vxml PUBLIC '-//Voxpilot/DTD VoiceXML 2.0//EN' 'http://dtd.voxpilot.com/voice/2.0/voxpilot_voicexml-2.0.dtd'>

<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">

<form id="getAppointmentDetails">
<field name="digit1" type="digits?length=2">
<prompt> what number </prompt>
</field>


</form>

</vxml>

#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 01 May 2006 - 07:23 PM

You may want to just use include instead of echoing everything.

example

2 pages

one is index.php
other is voice.html
and both files are in the same directory

voice.html will be your usual html page

in index.php use this
<?
include ('voice.html');
?>

That will include it on the page and no need to echo

Ray

#3 eric07

eric07
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 01 May 2006 - 07:36 PM

from the voiceXML document can I still access php variables from the index.php page where it is included?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users