Re: Passing an array as a hidden variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hmmm,
anyways, to do that you can just join the array using
$str_attend_save = implode('|', $attend_ary_save);
<? echo '<input type="hidden" name="str_attend_save" value=' . 
$str_attend_save .'>'; ?>

On your action page, you do this:
$attend_ary_save = explode('|', $_POST['str_attend_save']);

-- 
itoctopus - http://www.itoctopus.com
"Todd Cary" <todd@xxxxxxxxxxxxxxxxxx> wrote in message 
news:C3.71.20961.A3845464@xxxxxxxxxxxxxxx
> When I use the following syntax, the 2 dimensional array loses it's 
> contents.  Can an array be passed this way?
>
>   <? echo '<input type="hidden" name="attend_ary_save" value=' . 
> $attend_ary_save .'>'; ?>
>
> Todd 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux