note 23891 added to security.registerglobals
| From: | php-general at lists dot php dot net | Date: | Wed, 31 Jul 2002 04:38:00 +0000 |
| Subject: | note 23891 added to security.registerglobals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34032@lists.php.net to get a copy of this message | ||
It seems that the post-method does not handle the arrays like I thought. When I pass an array from a
form to another page, just the first character or more often, the word "Array" passes.
Then in the result page, if I use print $variable -command, it prints "Array". When I use
print_r(array_values($variable)), it says that argument to array_values must be an array...
Am I doing something wrong or what? I hope I am, because it would be so handy if I could pass some
arrays from page to another with post.
I have used a normal string, where is all values from array separated with either dots or commas. It
works, but every single time I have to make it and then unpack it in the result page. It brings so
much more lines to my code.
--
http://www.php.net/manual/en/security.registerglobals.php
http://master.php.net/manage/user-notes.php?action=edit+23891
http://master.php.net/manage/user-notes.php?action=delete+23891
http://master.php.net/manage/user-notes.php?action=reject+23891