eric07 Posted May 1, 2006 Share Posted May 1, 2006 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> Quote Link to comment Share on other sites More sharing options...
craygo Posted May 1, 2006 Share Posted May 1, 2006 You may want to just use include instead of echoing everything.example2 pagesone is index.phpother is voice.htmland both files are in the same directoryvoice.html will be your usual html pagein index.php use this[code]<?include ('voice.html');?>[/code]That will include it on the page and no need to echoRay Quote Link to comment Share on other sites More sharing options...
eric07 Posted May 1, 2006 Author Share Posted May 1, 2006 from the voiceXML document can I still access php variables from the index.php page where it is included? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.