<?
$name = '|'. $_POST['name1'] .'|'. $_POST['name2'] .'|'. $_POST['name3'];
$DB -> query ("INSERT INTO `films_dir` SET `name` = ".$DB -> quote ($name).", `opis` = ".$DB -> quote ($opis).", `description` = ".$DB -> quote ($description).", `keywords` = ".$DB -> quote ($keywords).""
;
echo "<label><input type="checkbox" name="name1" value="1" /> Категория 1</label><br />n";
echo "<label><input type="checkbox" name="name2" value="2" /> Категория 2</label><br />n";
echo "<label><input type="checkbox" name="name3" value="3" /> Категория 3</label><br />n";
?>