in reply to Parsing "&" from header.

Values submitted by a form as elements in a URL should be encoded to avoid the reserved characters like &. So if your user enters
Sanford & Sons
The URL should be encoded as
...&bar=foo&company=Sanford+%26+Sons&foo=bar&...
Note that the spaces are encoded as plus signs, and the ampersand is encoded with a %26 (the hexadecimal value for ASCII '&').

The docs of the CGI module discuss how to specify application/x-www-form-urlencoded to your FORM tag, to have your browser encode these elements for you. The CGI module can then do the parsing correctly.

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Parsing "&" from header.
by Anonymous Monk on Mar 26, 2004 at 14:52 UTC
    It is a strange thing cause it still doesn't do that using
    application/x-www-form-urlencoded

    on the form but nothing, it's a lost issue....