====== < submit > ====== ===== Description ===== The element submits values to document server. It is similar to in that it results in a new document being obtained. Unlike , it lets you submit a list of variables to the document server via HTTP GET or HTTP POST. ===== Syntax ===== ===== Attributes ===== |next|The next attribute is the URI to which the query is submitted. This attribute is required - specifically either next or expr is required.| |expr|The expr attribute is an expression that yields the URI. This attribute is required - specifically either next or expr is required.| |namelist|The namelist attribute is a space-separated list of variables to submit. This attribute is optional and defaults to nothing.| |method|The method attribute specifies the query request method, get or post. This attribute is optional and defaults to get.| |enctype|The enctype attribute is MIME encoding of the document. This attribute is optional and defaults to application/x-www-form-urlencoded. The following types are supported: \\ * application/x-www-form-urlencoded. \\ * multipart/form-data.| |fetchaudio|The fetchaudio attribute is the URI of the audio to play while waiting for the next document to be fetched.| |fetchhint|The fetchhint defines when the audio file should be retrieved. This attribute is optional. \\ * prefetch – the audio file may be downloaded when the page is loaded. \\ * safe – the audio file is loaded only when needed.| |maxage|The maxage attribute indicates the maximum time in seconds that this document will use this file before fetching another copy. This attribute is optional.| |maxstale|The maxstale attribute indicates the maximum time in seconds that this document will use a file that exceeded the maxage time. This attribute is optional.| ===== Parents ===== , , , , , , , ===== Children ===== None. ===== Extensions ===== None. ===== Limitations/Restrictions ===== The attribute fetchhint = prefetch is not supported, and is optional in VoiceXML. ===== Example Code =====
Welcome to the Driving Directions By Phone. Where do you want to drive from and to? Please say something like this, "from Toronto Ontario to Ottawa Ontario". I'm sorry, I still don't understand. I'll ask you for information one piece at a time. From which city are you leaving? ... Which city are you going to? ... Retrieving directions