Use session management for this! Passing in $_GET is no good, there is a hard limit in length! If you really have to do this you can use serialize() for converting arrays to strings.
----- Original Message ----- From: "Bob Sawyer" <[EMAIL PROTECTED]> To: "PHP List" <[email protected]> Sent: Tuesday, December 06, 2005 10:32 PM Subject: [php-list] passing an array via $_GET I'm trying to pass an array via $_GET similar to the following: // code that builds the array $foo[] = 1; $foo[] = 2; $foo[] = 3; header("location: form.php?foo=$foo"); When I submit my form, I see 'http://../form.php?foo=ARRAY' in the browser location bar, and the contents of $foo are no longer accessible. I looked at the serialize() function, but it doesn't seem to work, either. Is there a way to pass array vars via $_GET and still access them on another page? THanks, Bob __________________________________________ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list -------------------------------------------------------------------------------- YAHOO! GROUPS LINKS a.. Visit your group "php-list" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -------------------------------------------------------------------------------- ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
