NaviServer - programmable web server

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_getform(n) 4.99.19 naviserver "NaviServer Built-in Commands"

Name

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

Table Of Contents

Synopsis

Description

This command returns a handle to an ns_set which contains all of the query data from the current HTTP request. The resulting data includes query parameters passed in the URL as well as multipart form data. If there is no form data, an empty ns_set is created.

The command ns_getform gets from data from GET or POST requests and processes either the data in the spool file or in memory.

For GET requests ns_conn form and ns_getform are identical. The command handles content-types application/x-www-form-urlencoded and multipart/form-data.

For uploaded files tow additional elements are created in the ns_set, named input_name.content-type and input_name.tmpfile. The filename for the temporary file name is generated by ns_mktemp, the file is deleted automatically, when the connection is closed.

COMMANDS

ns_getform

See Also

ns_atclose, ns_conn, ns_getcontent, ns_getformfile, ns_mktemp, ns_queryget, ns_set

Keywords

form