parseFormURL           package:RGtkViewers           R Documentation

_C_r_e_a_t_e_s _n_a_m_e_d _c_h_a_r_a_c_t_e_r _v_e_c_t_o_r _f_r_o_m _H_T_M_L _P_O_S_T _f_o_r_m _q_u_e_r_y _s_t_r_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     parseFormURL(url)

_A_r_g_u_m_e_n_t_s:

     url: the encoded string to be parsed

_D_e_t_a_i_l_s:

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

_V_a_l_u_e:

     A named character vector

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.omegahat.org/RGtk>, <URL: http://www.gtk.org>

_S_e_e _A_l_s_o:

     'viewHtml'

_E_x_a_m_p_l_e_s:

