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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" />

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux