Ns getform

From AOLserver Wiki
Revision as of 23:52, 16 October 2004 by WikiSysop (talk | contribs) (imported from WiKit id 566)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_getform.html <-- broken link


NAME

ns_getform - Return an ns_set that contains all of the query data that was part of the HTTP request

SYNOPSIS

ns_getform

DESCRIPTION

This command returns a handle to an ns_set which contains all of the query data from the current HTTP request. This includes query parameters passed in the URL as well as multipart form data. If there is no data, an empty string is returned and no ns_set is created.
FIXME: Does it include query parameters passed in the URL as well as form data? If the browser does a GET request, AOLserver looks at the query vars, if a POST, it looks at form data in the body of the request I believe.
Is an empty string returned if there is no form data? The set is not created on demand when ns_getform is called, it is created as the request is parsed. You will always get some kind of reference to a set back, even if that set is empty.


SEE ALSO

ns_getformfile, ns_queryget, ns_set

Category Documentation - Category Core Tcl API