|
Author
|
Topic: how to use submit
|
rnbguy
Junior Member
Member # 3661
Rate Member
|
posted July 06, 2006 03:54 AM
im curious with <submit next=" ... .php">
what should my php script return , in order for the vxml document to recognise it.
Posts: 5 | Registered: Jul 2006
| IP: Logged
|
|
mheadd
Member
Member # 3181
Member Rated:
|
posted July 06, 2006 11:15 AM
The submit element does two things. First, it submits information to the URL in the "next" attribute (e.g., next="http://www.someurl.com"). The variables that you submit are listed in the "namelist" attribute (e.g., namelist="var1 var2 var3")
What gets submitted by the VoiceXML platform is essentially the same as what gets submitted by a regular browser when you request a page from a server (http://www.someurl.com?var1=&var2;=&var3;=) -- a URL followed by a set of parameters. Unless you specify otherwise, this URL string gets submitted using the GET method.
It also transitions the caller to the page that is sent back in response. So, to answer your question, the PHP script identified in the "next" attribute must render valid VoiceXML.
See this post for some additional details on using submit.
-------------------- Mark VoiceinGov.org http://www.voiceingov.org
Posts: 55 | Registered: Jun 2005
| IP: Logged
|
|
rnbguy
Junior Member
Member # 3661
Rate Member
|
posted July 07, 2006 08:11 AM
thanx helps heaps, but for some reason once i submit my app to the php which looks exactly like u wrote, my app will exit once the php id done
Posts: 5 | Registered: Jul 2006
| IP: Logged
|
|
|