parseFormURL {RGtkViewers}R Documentation

Creates named character vector from HTML POST form query string

Description

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.

Usage

parseFormURL(url)

Arguments

url the encoded string to be parsed

Details

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")

Value

A named character vector

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.gtk.org

See Also

viewHtml

Examples



[Package RGtkViewers version 0.7 Index]