Page 1 of 1

Passing arrays through hidden fields

Posted: Tue Jul 01, 2003 12:53 pm
by mikusan
I have encountered the need to pass an array through hidden fields, i have tried to use the checkbox method, that is:

Code: Select all

<input type="hidden" name="uid[]" value="' . $Data['uid'] . '">
But unfortunately that does not seem to cut it... it will only pass one variable...the first.

If anyone has any suggestions please help...thx

Posted: Tue Jul 01, 2003 2:17 pm
by twigletmac
You either need to have one hidden field for each element in the array or you could look into something like serialize() and the unserialize().

Mac