You are here: Re: PHP Array to a string « All PHP « IT news, forums, messages
Re: PHP Array to a string

Posted by BODY on 06/07/05 14:18

Yes !
It works just fine thanks.

"Pr0 N00b" <nomail@mail.invalid> wrote in message
news:42a577a4$0$45447$e4fe514c@news.xs4all.nl...
> BODY schreef:
>> hello,
>>
>> I have an HTML form with a list of check boxes. The values of the
>> checkboxes are stored in an array :
>> <input type="checkbox" name=box[] value="VAL1">
>> <input type="checkbox" name=box[] value="VAL2"> etc...
>>
>> I now would like to get all checked boxes value in a string to be sent
>> by mail.
>>
>> I can read the array using : $MyVar=serialize($_POST['box']);
>> But the string I get is like: a:1:{i:0;s:5:"VAL1";}
>> not very useful.
>> Any idea to have it in a "clean" string"
>> Thanks,
>>
>> Bruno.
>
> See the implode function

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация