Re: Re: <input type="checkbox">

From: Date: Sat, 15 Mar 2008 04:23:00 +0000
Subject: Re: Re: <input type="checkbox">
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-271639@lists.php.net to get a copy of this message
On Sat, 2008-03-15 at 00:18 -0400, John Taylor-Johnston wrote: > Sorry, will this work? > > $sql ='insert into > database.table > (Nom ,checkregion) > values ('John', '".serialise($_POST['checkregion'])."') > '; Depends on what you want to do with the data. But you've certainly spelled serialize() wrong as it regards usage in PHP. Cheers, Rob. > > > John Taylor-Johnston wrote: > > Will this do it? > > > > > $sql ='insert into > > > database.table > > > (Nom ,checkregion) > > > values ('John', '".implode(',', > > > serialise($_POST['checkregion'])."') '; > > > > http://ca.php.net/manual/en/function.serialize.php > > > > > >> Array > >> ( > >> [0] => Hemmingford > >> [1] => Huntingdon > >> ) > >> > >>> <input type="checkbox" name="checkregion[]" > >>> value="Knowlton" /> > >>> <input type="checkbox" name="checkregion[]" > >>> value="Thetford Mines" /> > -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#271639) next »