note 23891 deleted from security.registerglobals by dams

From: Date: Wed, 31 Jul 2002 19:07:21 +0000
Subject: note 23891 deleted from security.registerglobals by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34056@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.

« previous php.notes (#34056) next »