Re: Re: <input type="checkbox">
| From: | John Taylor-Johnston | Date: | Sat, 15 Mar 2008 04:18:52 +0000 |
| Subject: | Re: Re: <input type="checkbox"> | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271638@lists.php.net to get a copy of this message | ||
Sorry, will this work?
$sql ='insert into
database.table (Nom ,checkregion)
values ('John', '".serialise($_POST['checkregion'])."') ';
John Taylor-Johnston wrote:
Will this do it? $sql ='insert intodatabase.table(Nom,checkregion) values ('John', '".implode(',', serialise($_POST['checkregion'])."') '; http://ca.php.net/manual/en/function.serialize.phpArray ([0] => Hemmingford [1] => Huntingdon)<input type="checkbox" name="checkregion[]" value="Knowlton" /> <input type="checkbox" name="checkregion[]" value="Thetford Mines" />