| parseFormURL {RGtkViewers} | R Documentation |
This parses a query string
generated by an HTML form using the
POST method and converts it into
its consituent elements.
Essentially this breaks the string at the
& and tries to handle the
basic substitutions to create
a collection of name-value pairs.
Since these are all strings, the result is
a named character vector.
This is somewhat incomplete but works for basic strings.
parseFormURL(url)
url |
the encoded string to be parsed |
If we had a form with say,
2 input elements with name attributes
given by foo and bar.
And suppose that the user selects/specifies values
1 and "abc".
Then, the string will be delivered as
?foo=1?bar=abc.
This is converted to
c(foo="1", bar="abc")
A named character vector
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.gtk.org