...

View Full Version : Passing arrays through hidden input fields



markhartnady
05-24-2004, 08:59 AM
Does anyone know if this is possible... Or if not... another way of doing it.

Lets say $list is an array...

Can one do this:


<input type=hidden name=myarray[] value=$list>

???

Thanks.

firepages
05-24-2004, 09:08 AM
probably better to use sessions to track your data .. but you can do ..



<input type="hidden" name="myarray" value="<?=serialize($list);?>" />


to get the data back into an array later ..



<?$array=unserialize($list);?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum