RE: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread Swan, Nicole
I thought I would mention that if you just "echo" or "print" an array, just the word "array" is shown. If you do a var_dump($myArray) on the array, the values should be shown. Otherwise you can get the values as follows: $myArray = $_GET["b"]; //then get and print values foreach( $myArray as

Re: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread John W. Holmes
From: "Sukanto Kho" <[EMAIL PROTECTED]> > My problem is I want to pass var array with $_get.. > > eg : $a=array() then i pass to other pages www.main.com?b=$a >after that echo $b >the result is "array"... just that... $safe = urlencode(serialize($a)); $url = "http://www.main.co

Re: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread BenT
Just make sure that you type $_GET $_SESSION $_POST these variables are case sensitive. I was stumped for a week because of this problem. BenT Sukanto Kho wrote: Hi all, sorry for making a little mess up just now.. My problem is I want to pass var array with $_get.. eg : $a=array() then i

Re: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread Mikhail U. Petrov
Hi! You can't pass array with GET using such method. For this purpose use www.main.com?b["foo"]=foo1&b["foofoofoo"]=foo3 etc. Of course I think you should use urlencode(string); Monday, April 26, 2004, 1:55:06 PM, Sukanto wrote: SK> Hi all, sorry for making a little mess up just now.. SK> My