wwUtils::GetURLEncodedKey

Retrieves a 'parameter' from a URL Encoded string such as a QueryString or POST buffer.

To use this function pass the full buffer and a key name to retrieve.

o.GetURLEncodedKey(tcURLString, lcKey)

Return Value

string value of the key if found. Otherwise "" is returned.

Parameters

tcURLString
The full UrlEncoded buffer

lcKey
The key to retrieve from the buffer

Example

lcEncoded = "Name=Rick&Company=West+Wind&Address=32+Kaiea"

? GetUrlEncodedKey(lcEncoded,"User") && Rick Strahl
? GetUrlEncodedKey(lcEncoded,"Id") && 0011

See also:

Library wwUtils

© West Wind Technologies, 1996-2024 • Updated: 05/11/12
Comment or report problem with topic