Jump to content

Archived

This topic is now archived and is closed to further replies.

eric07

php voiceXML

Recommended Posts

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>

Share this post


Link to post
Share on other sites
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
[code]<?
include ('voice.html');
?>[/code]

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

Ray

Share this post


Link to post
Share on other sites
from the voiceXML document can I still access php variables from the index.php page where it is included?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.