RE: Correct handling _POST[] and implode. PHP5

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

 




> Its very obvious that $_POST["color"] is not an array.
> 
> do something like this and you wil get the values.
> 
> $arr_color = $_POST["colors"];
> 
> //iterate over the array
> foreach($arr_color as $val)
> {
>     $str_color .= ", "  . $val;
> }

so it's simple, it's not an array, but your assignment magically makes it an array since you wrote "iterate over the array" ... very, very clear, isn't it?
 		 	   		  
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010

[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