sending an array in an hidden field

N

nescio

hello,

i have an array and i want to sent it in an hidden field with other
information in a form;

when i try to look in the array, i sent with the hidden field , with
'foreach' i always get an
error mesage: Warning: Invalid argument supplied for foreach()

my question is: is it possible to sent an array in an hidden field and use
it on another page?

thanks,
 
M

Marcel

nescio said:
hello,

i have an array and i want to sent it in an hidden field with other
information in a form;

when i try to look in the array, i sent with the hidden field , with
'foreach' i always get an
error mesage: Warning: Invalid argument supplied for foreach()

my question is: is it possible to sent an array in an hidden field and use
it on another page?

thanks,

No that is not possible that way!

Marcel
 
J

Jonathan N. Little

nescio said:
hello,

i have an array and i want to sent it in an hidden field with other
information in a form;

when i try to look in the array, i sent with the hidden field , with
'foreach' i always get an
error mesage: Warning: Invalid argument supplied for foreach()

my question is: is it possible to sent an array in an hidden field and use
it on another page?

Yes, but in ONE hidden field would require packing into a single string
or to send as an array requires an array of the hidden field. Next
question what language are you using to receive the information? Perl,
PHP, ASP, Coldfusion,...?
 
D

David Dorward

nescio said:
my question is: is it possible to sent an array in an hidden field and use
it on another page?

Yes - but you have to serialise it to a string then deserialise it at the
other end.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top