Page 1 of 1

Bad Arguments

Posted: Sun Mar 05, 2006 12:01 pm
by Smackie
I have a problem on a script im working on and i keep getting this
Warning: implode(): Bad arguments.
in /var/www/vhosts/globalnavalstrikeforce.com/httpdocs/admin/admin-task-force.php on line 508
and on line 508 is

Code: Select all

$office_adder = implode("/",$_POST['offices']);
can someone help me
thank you
Smackie

Posted: Sun Mar 05, 2006 12:08 pm
by John Cartwright
what does

Code: Select all

echo '<pre>'; print_r($_POST['offices']); echo '</pre>';
return?

Posted: Sun Mar 05, 2006 12:21 pm
by Smackie
it looks like that makes it works.. it doesnt return anything except what its suppose to thank you

Posted: Sun Mar 05, 2006 12:35 pm
by John Cartwright
it looks like that makes it works..
That code won't make any "work", except show you the values of the array.
it doesnt return anything except what its suppose to
Well what is it supposed to return??[/quote]