Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Decode CGI with checkboxes Re:

From: sterling:rebol at: 17-Sep-2000 13:58

Just don't make the object and scan the block yourself: decode-cgi "foo=10&foo=20" == [foo: "10" foo: "20"] ; your data is intact parse decode-cgi "foo=10&foo=20" [ some [ copy wrd set-word! copy value string! (print ["Name:" wrd "Value:" value]) ] ] So instead of printing them out you can do something with the values you get for each word. The suggestion to use make object! with decode-cgi just makes handling most data very easy. In the less frequent cases you may have to do a little work yourself. Sorry. Sterling