[irev] passing a parameter
Alex Tweedly
alex at tweedly.net
Thu Mar 22 06:47:38 EDT 2012
No idea - I've just always done it :-)
Yep - a quick check says you're right, they are already urlDecoded
In fact, the release notes say:
> $_GET
> Available when running in CGI mode.
> It is an array variable, translated from the QUERY_STRING. It assumes
> the query string is encoded as url-form-encoded data.
> The data will be converted to the native character set from the
> character set defined in the outputTextEncoding.
(and it's the same for $_POST, etc.)
Thanks - I can go remove a whole bunch of urlDecode calls now :-)
-- Alex.
On 22/03/2012 09:56, Dave Cragg wrote:
> On 22 Mar 2012, at 08:54, Alex Tweedly wrote:
>
>> put URLdecode( $_GET["keyname"] ) into tData
> Alex, just a question for future reference. Is it necessary to URLDecode the $_GET values? I'm going on php experience here where $_GET values are already decoded. I was assuming it would be the same with Livecode.
>
> Cheers
> Dave
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list