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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.