[FX.php List] Thoughts about line 1425 of FX.php
Gjermund Gusland Thorsen
ggt667 at gmail.com
Wed Jun 10 11:57:21 MDT 2009
First off warning are not errors.
Warnings are as the word says just telling you that something is not right,
I use arrays all the time, and I do not really see that warning that off.
I assume some brackets or escapes are not closed idiot proof to the
array cowboys
throwing arrays around like Indiana Jones with a whip.
I have had people asking me if I am crazy when I explained my naming
of variables setup
a = action
s[] = submitable data
p[] = must be parsed before submission
pre[] = prejudice, this one I use as _GET to prefill forms from a get query.
ggt
Another similar issue, in terms of hierarchy, is that FileMaker’s XML
RPC returns an error for foundCount = 0
ggt667
2009/6/10 Steve Winter <steve at bluecrocodile.co.nz>:
> Hi all,
> Not sure if anyone's ever seen this wee error;
> Warning: urlencode() expects parameter 1 to be string, array given in
> /path/to/fx/FX.php on line 1425
> but I periodically get it, and today I decided to try and find out why...
> Turns out that the function it's part of BuildLinkQueryString () is taking
> the posted parameters and attempting to create a nice URL friendly
> string...
> Nice idea and all that, and maybe I'm the only one who ever does it, but I
> periodically push form data into an array, and it's that which is causing
> the issue...
> So, does anyone know how important (or not) that function is to the internal
> workings of FX...? it appears that it's attempting to create the old CDML
> style LinkNext, LinkPrevious type URL strings... anyone ever use those these
> days...?? Is this data also sued for anything else, I don't think so, since
> previously I've just ignored the error, with seemingly no ill effects...
> If it is as legacy as it looks, is it perhaps time to retire that
> function...? Any thoughts on how to deal with the array concept in post
> variables...? I guess the array could be exploded and then rebuilt as a
> strong in the form array[]=fred&array[]=spoon&array[]=lives&array[]here but
> if it's not needed....???
> Cheers
> Steve
>
> Steve Winter
> steve at bluecrocodile.co.nz
> m: +44 77 7852 4776
> 3 Calshot Court, Channel Way
> Ocean Village, Southampton SO14 3GR
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
More information about the FX.php_List
mailing list