Re: more detail..passing array_var with $_get
| From: | Mikhail U. Petrov | Date: | Mon, 26 Apr 2004 10:03:49 +0000 |
| Subject: | Re: more detail..passing array_var with $_get | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34095@lists.php.net to get a copy of this message | ||
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 problem is I want to pass var array with $_get..
SK> eg : $a=array() then i pass to other pages www.main.com?b=$a
SK> after that echo $b
SK> the result is "array"... just that...
SK> I want to make a product quotation so my purpose is that i add all product 1 by 1 in my local
SK> pc
SK> then just adding to database in server at once...
SK> the best way is using array right?? if i using session then it just the same result....
SK> thanx
--
Best regards,
Mikhail U. Petrov
mailto:mikhail@begun.ru