RE: [PHP] Passing associative arrays between forms
| From: | jeremy brand | Date: | Fri, 18 Aug 2000 09:17:59 +0000 |
| Subject: | RE: [PHP] Passing associative arrays between forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12441@lists.php.net to get a copy of this message | ||
On Sat, 19 Aug 2000, Christopher Thompson wrote:
> I am not sure how the implode() and explode() would help. Just keep them as
> arrays. Try something like:
>
> <input type=text name="array[element]" value="<?php echo
> $array['element'];
> ?>">
>
> This may only work in PHP4.
No, it indeed does work in PHP 3 as well.
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.jeremybrand.com/jeremy/brand/jeremy_brand.html
for more __
>
>
> > -----Original Message-----
> > From: Paulson, Joseph V. "Jay" [mailto:jay.paulson@viatel.com]
> > Sent: Thursday, August 17, 2000 2:11 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] Passing associative arrays between forms
> >
> >
> > Hey everyone--
> >
> > I have a multiple page form (it's three pages long) and I am
> > trying to pass
> > an array between each form using the implode() and explode() functions.
> > However, I would like to keep the associative properties of the array I
> > create and not have to keep track of what position [0],
> > [1],...[99] are. Is
> > there any other way to pass array's between forms besides using the
> > implode() and explode() functions?
> >
> > I've already tried cookies but I have too many values for the browser to
> > handle (I have over 20 variables to pass between each form). Therefore,
> > cookies won't work.
> >
> > Any how, any help would be much appreciated!!! :)
> >
> > Thanks in advance...
> > Jay Paulson
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>