Re: Passing ARRAY through URL

From: Date: Sat, 08 Feb 2003 01:34:28 +0000
Subject: Re: Passing ARRAY through URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134841@lists.php.net to get a copy of this message
Servers usually have limits on the get method (usually 500 characters IIRC), and some browsers may as well. I reccomend you look into using the post method through javascript. Squirrel User wrote:
Help. I've tried to pass large array through URL but it keep telling me page can not be displayed: <? // page1.php $mList = arrary();
...    // fill array with values
$mList = urlencode( serialize( $mList ) ); header( "location: page2.php?mL=$mList" ); ?> <? // page2.php $mList = stripslashes( unserialize( $mL ) ); print_r( $mList ); ?> ------------------------------------------------- This mail sent through ISOT. To find out more about ISOT, visit http://isot.com
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#134841) next »