Page 1 of 1

sending variables with coldfusion

Posted: Sun Sep 28, 2008 8:18 am
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>

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

Posted: Mon Sep 29, 2008 11:11 am
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