Difference between revisions of "Ns parsequery"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 613)
 
(fixed markup of sample code)
Line 17: Line 17:
 
'''EXAMPLES'''
 
'''EXAMPLES'''
  
     % set s [[ns_parsequery "msg=Hello+World%21&a=b&a=b&c=d"]]
+
     % set s [ns_parsequery "msg=Hello+World%21&a=b&a=b&c=d"]
 
     d0
 
     d0
  

Revision as of 08:30, 28 January 2009

Man page: http://aolserver.com/docs/tcl/ns_parsequery.html


NAME

ns_parsequery - Parse a URL query string into an ns_set.

SYNOPSIS

ns_parsequery querystring

DESCRIPTION

This command parses the specified querystring into an ns_set, which is returned. The keys and values will be decoded.

EXAMPLES

   % set s [ns_parsequery "msg=Hello+World%21&a=b&a=b&c=d"]
   d0
   % ns_set array $s
   msg {Hello World!} a b a b c d

Category Documentation - Category Core Tcl API