> -----Original Message-----
> From: Paul Nicholson [mailto:paul@;dtnicholson.com]
> Sent: 29 October 2002 19:10
> To: Sascha Cunz; Petre Agenbag; [EMAIL PROTECTED]
> 
> Hey,
> I think you should be able to serialize and urlencode the 
> array and then
> pass that via get/post.....post would be a lot better as get 
> is limited to so many chars.
> Something like:
> $sql = "select stuff from my_table";
> $result = mysql_query($sql);
> while ($myrow = mysql_fetch_assoc($result)) {
>       $id = $myrow["id"];
>       $my_array[] = $id;
> }
> echo '<a href="next_page.php?array='. 
> urlencode(serialize($my_array)) .'">Next</a>';
> You'll need to unserialize+urldecode the array at the other end.

You shouldn't need to urldecode(), as this happens automatically.  In fact, this is 
exactly *why* you need to urlencode() it in the first place!

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to