[REBOL] Re: decode-cgi bug (imbedded spaces in names)
From: tim:johnsons-web at: 10-Feb-2004 7:43
* Andreas Bolka <[andreas--bolka--gmx--net]> [040210 06:04]:
>
> Tuesday, February 10, 2004, 12:47:11 AM, Tim wrote:
>
> > I want to note that I modified decode-cgi so that a block of string
> > pairs is returned rather than a block of alternating to-set-word
> > types and strings.
>
> > Reason for it: A rebol cgi program might be processing a form in
> > which field names have imbedded spaces.
<..>
> >> probe o
>
> make object! [
> field one: "1"
> fieldtwo: "2"
> ]
> >> print mold b
> [field one: "1" fieldtwo: "2"]
> >> get in o to-word "field one"
What would the advantage of this example,
as opposed to
select o "field one" ;where o is stored as pairs of strings
thanks
tim
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com