Hi, I'm trying to add all elements in $HTTP_POST_VARS into my $FormData array which I have is a session variable. This works fine unless I have an element of $HTTP_POST_VARS which is an array. eg if I have $HTTP_POST_VARS['Array'] then this doesnt work as my $FormData['Array'] is no longer an array. Can anyone help me ?? thanks Pete while ( list($name,$value) = each($HTTP_POST_VARS)) { if (is_array($value)) { for($x=0;$x<count($value);$x++) { $FormData[$name] = $value[$x]; } } else { $FormData[$name] = $value; } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]