Post , UrlDecode and Ampersand
kray at sonsothunder.com
Sat Dec 20 23:42:40 CST 2003
> on startup
> if $REQUEST_METHOD is "POST" then
> ## repeat read to get around bug in reading stnIn
> repeat until length(tIncoming) >= $CONTENT_LENGTH
> read from stdin until empty
> put it after tIncoming
> end repeat
> put urlDecode (tIncoming) into tDataIn
> split tDataIn by "&" and "="
Sannyasin... Why don't you do the split *before* you urlDecode? This way you
won't have to worry about the ampersands, and all you'll have to do is
urlDecode the element you're trying to retrieve from the tDataIn array.
Works here for me...
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode