Jump to content

php voiceXML


eric07

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>
Link to comment
https://forums.phpfreaks.com/topic/8831-php-voicexml/
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
Link to comment
https://forums.phpfreaks.com/topic/8831-php-voicexml/#findComment-32422
Share on other sites

Archived

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

×
×
  • Create New...

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.