We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

sending variables with coldfusion

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
mike20
Posts: 1
Joined: Tue Sep 23, 2008 5:27 am
Contact:

sending variables with coldfusion

Post by mike20 »

please kindly help out with a coldfusion script that will be able to handle variables ( i.e customerid and age ) sent from a vxml script.
can i get an equivilent of the following php script in coldfusion, please!!!

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");

$customerid = $_GET[customerid];
$age = $_GET[age];
?>

<vxml version="2.0">
<form>
<block>
<prompt>
Your customer identification number is <?php echo($customerid)?>.
</prompt>
<prompt>
Your age is <?php echo($age)?>.
</prompt>
</block>
</form>
</vxml>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR code should be the coldfusion equivalent of the php ex.

Post by support »

Hi,

While we don't have anyone on staff with any expertise on coldfusion, we believe the following IVR code example should be the coldfusion equivalent of the php example:

example.cfm

Code: Select all

<?xml version="1.0"?>
<cfset customerid=URL.customerid>
<cfset age=URL.age>
<vxml version="2.0">
<form>
<block>
<prompt>
Your customer identification number is <cfoutput>customerid</cfoutput>.
</prompt>
<prompt>
Your age is <cfoutput>age</cfoutput>.
</prompt>
</block>
</form>
</vxml>
Hope this helps.

Regards,
Plum Support

Post Reply