Re: working on data from a multi-select form field

From: Date: Mon, 24 Jul 2000 15:42:05 +0000
Subject: Re: working on data from a multi-select form field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7878@lists.php.net to get a copy of this message
> Thanks to the mailing list archive, I just learned about creating form > variable arrays and how to get a list of which items the end-user > chose. Now I'm puzzled and can't seem to find any recommendations on what > to do with the data. I'm used to storing standard forms into the database, > but what do you do when one of the fields is an array? You could use the serialize() function to serialize the array and then store it in a text field in the database. To get the array back you then use unserialize() The prototypes for the two functions are: string serialize(mixed value); mixed unserialize(string str); I hope this is what you where looking for. Best regards, Jesper Juhl juhl@eisenstein.dk

« previous php.general (#7878) next »