OK, I have found a solution ...
Just use an object to allow this (thanks Derrel ...).
for example : in your javascript code set
record={field1: value1, field2: value2, ...}
res = rpc.callSync("saveData", "mytable", record);
You must retrieve this in your PHP callback
function method_saveData(
Thanks Derrel, I'm not sure to understand all you said because I'm not an
expert of PHP and Javascript languages anyway I'll give a look at PHP object
to find the relation between an key indexed array and a PHP object.
Of course if I find a solution, I'll publish it through the forum, also I'll
gi
ericson <[EMAIL PROTECTED]> writes:
> I'd like to pass an array with "keys" to a PHP file through RPC.
>
> var record=[value1,value2,...];
> res = rpc.callSync("saveData", "mytable", record);
>
> it works well, but in fact I would like to retrieve in my PHP program an
> array like :
>
> record ["f
Hi all,
I'd like to pass an array with "keys" to a PHP file through RPC.
var record=[value1,value2,...];
res = rpc.callSync("saveData", "mytable", record);
it works well, but in fact I would like to retrieve in my PHP program an
array like :
record ["field1"=>value1, "field2"=> value2, ...]