VoiceXML Forum Community Message Board


Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» VoiceXML Forum Community Message Board   » Newbies   » how to use submit

 - UBBFriend: Email this page to someone!    
Author Topic: how to use submit
rnbguy
Junior Member
Member # 3661

Rate Member
Icon 1 posted July 06, 2006 03:54 AM      Profile for rnbguy   Email rnbguy   Send New Private Message       Edit/Delete Post   Reply With Quote 
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:
4
Icon 1 posted July 06, 2006 11:15 AM      Profile for mheadd   Author's Homepage   Email mheadd   Send New Private Message       Edit/Delete Post   Reply With Quote 
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
Icon 1 posted July 07, 2006 08:11 AM      Profile for rnbguy   Email rnbguy   Send New Private Message       Edit/Delete Post   Reply With Quote 
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


All times are Eastern  
Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | VoiceXML Forum



Powered by Infopop Corporation
UBB.classicTM 6.3.1.2