Re: Array problem
| From: | Nicholas Kell | Date: | Wed, 27 Oct 2010 15:57:59 +0000 |
| Subject: | Re: Array problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309108@lists.php.net to get a copy of this message | ||
On Oct 27, 2010, at 10:53 AM, Don Wieland wrote:
> Hi. I have question regarding an array:
>
> This is a print of a POST array from a form of mine:
>
> Array
> (
> [SelVol] => Array
> (
> [0] => ohontheledge@yahoo.com
> [1] => donw@pointmade.net
> )
>
> [id_Event] => 10
> [sDate] => 10/31/2010
> [Note] => FFF
> )
>
> I am trying to implode the Sel_Vol and it is not giving me the results I want.
>
> $BCC = implode(",", $_POST['Sel_Vol']);
>
> I want a comma separated result =
>
> $BCC = "ohontheledge@yahoo.com,donw@pointmade.net";
>
> Little help - pretty please
>
> Don Wieland
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
I am not sure if you have a typo or if your code is actually in error.
Here the key is Sel_Vol
> $BCC = implode(",", $_POST['Sel_Vol']);
Here you are debuging SelVol (Without the underscore)
> [SelVol] => Array
This is my only immediate reaction.