PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
HTML QuickForm checkboxen

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
HackTack



Joined: 20 May 2008
Posts: 1

PostPosted: Tue May 20, 2008 7:36 am    Post subject: HTML QuickForm checkboxen Reply with quote

my data from a check box one store in such a way:
Code:


a:2:  {  s:2:"BV";s:1:"1";s:3:"gVv";s:1:"1";}
a:2:  {  s:2:"HB";s:1:"1";s:2:"VM";s:1:"1";}



How can I read these back?

The Form
Code:

$typ1[] = &HTML_QuickForm::createElement('checkbox', 'B', null, 'B');
        $typ1[] = &HTML_QuickForm::createElement('checkbox', 'BV', null, 'BV');
        $typ1[] = &HTML_QuickForm::createElement('checkbox', 'gVv', null, 'gVv');
        $typ1[] = &HTML_QuickForm::createElement('checkbox', 'FAv', null, 'FAv');
        $typ1[] = &HTML_QuickForm::createElement('checkbox', 'Mv', null, 'Mv');
        $this->addGroup($typ1, 'typ1','typ?', '<br>');


Back to top
View user's profile Send private message
primeminister
Site Admin


Joined: 16 Apr 2006
Posts: 94
Location: Netherlands

PostPosted: Thu Jun 12, 2008 1:23 pm    Post subject: Reply with quote

Hi HackTack,

The format of the data is serialized. You can unserialize it with a PHP function called unserialize() Smile

Have fun!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software