RE: [PHP] passing arrays
| From: | John Holmes | Date: | Fri, 24 May 2002 16:33:32 +0000 |
| Subject: | RE: [PHP] passing arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99099@lists.php.net to get a copy of this message | ||
Urldecode is automatic when you pass something through the URL. You can
call urldecode, but it doesn't do anything...
---John Holmes...
> -----Original Message-----
> From: Michael Virnstein [mailto:michael.virnstein@brodos.de]
> Sent: Friday, May 24, 2002 9:33 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] passing arrays
>
> $myarray = unserialize(urldecode($_GET['myarray']));
> or am i wrong?
>
> Regards Michael
>
> "Miguel Cruz" <mnc@stoic.net> schrieb im Newsbeitrag
> news:Pine.LNX.4.44.0205231456150.20585-100000@stoic.net...
> > On Thu, 23 May 2002, wm wrote:
> > > is there a way to pass arrays in forms or in the url?
> > >
> > > if i have $myarray=array("one","two","three");
> > >
> > > can i pass the whole array at once as opposed to having to pass
each
> > > individual element?
> >
> > <a href="whatever.php?myarray=<?= urlencode(serialize($myarray))
?>">
> >
> > Then in whatever.php:
> >
> > $myarray = unserialize($_GET['myarray']);
> >
> > miguel
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php