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

Posted by BODY on 06/07/05 13:25

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.

 

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

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