$_POST returns Array when getting data from multiple dropdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all


I want to get all data passed on to a certain page, I use this to make it happen:

foreach($_POST as $key => $tempvalue)
{
	$cVariable .= $key."=".$tempvalue."&";
}

This works fine as long it is textfields etc...
I.e: $cVariable //Contains foobar=something&

But if it is multiple dropdown then it returns correct "key" but the value will be "Array".
I.e: $cVariable //Contains foobar=Array&

Is there anyway I can get the values chosen instead of just "Array"?

Thx in advance

/Erfan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux