Re: multi select and php
| From: | John W. Holmes | Date: | Mon, 26 Apr 2004 19:55:00 +0000 |
| Subject: | Re: multi select and php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184694@lists.php.net to get a copy of this message | ||
From: "Andy B" <aborka1@wmis.net>
> anybody know where i can go to get a good idea on how to take values from
a
> multi select show them on the screen and then put them in a set column
type
> in php??
Where are you having trouble?
<select name="myselect[]" multiple>
Then you have $_POST['myselect'] array.
To get into comma separated list for display or insertion into column:
$list = implode(',',$_POST['myselect']);
Easy, eh? :)
---John Holmes...