[jQuery] Re: How to pass a jQuery object to PHP as an array

2008-11-03 Thread Ettiene

Have a look at JSON. PHP's got a json_encode function where you can
encode variables/data to json, and then use in javascript. So I guess
it could be done the other way around too.

Ettiene

On Nov 3, 7:10 am, GrootBaas [EMAIL PROTECTED] wrote:
 Hi all,

 Thank you in advance for you help 

 I have the following object ...

 console.log($('.users').select('.name'));

 How can I pass this object as an hidden form field back to my PHP
 controller as an array?

 Current code ...

 document.save_logs.table.value = value;
        document.save_logs.submit();

 ?=form_hidden('table','')?


[jQuery] Re: How to pass a jQuery object to PHP as an array

2008-11-03 Thread Jay

 How can I pass this object as an hidden form field back to my PHP
 controller as an array?

What would php do with a javascript object if you passed it?
Perhaps you should be passing some property of the object instead?