Page 1 of 1

Retrive value object other pages

Posted: Tue Mar 03, 2009 4:47 am
by soso
Hi,

To log a call duration, I've create this object:

Code: Select all

    <var name="startDate" expr="new Date()" />
My project has many pages, and I would like to use the startDate variable at the last page.

How can I use the submit value to transfert the variable other pages?

I want to use :

Code: Select all

<submit next="next.vxml" namelist="startDate" />
How can I retrieve the value in the next page?

Thanks by advance.

IVR code to fetch a variable

Posted: Tue Mar 03, 2009 12:26 pm
by support
Hi,

I would recommend that you read this IVR documentation first to understand how the data exchange works in general and to give you a better sense of how to use the IVR tag, <submit>:
http://www.plumvoice.com/docs/dev/devel ... taexchange


So, if the page you were submitting to were written in php and you had POSTed the variable, you would fetch the variable by doing the following in your next.php page:

$startdate = $_POST[startDate];

Hope this helps.

If you need additional assistance, you could post your IVR code here and we can make some suggestions on how to improve your IVR code.

Regards,
Plum Support