<form action="2.php" method="post"> <input name="select[]" type="checkbox" value="1" />1 <input name="select[]" type="checkbox" value="2" />2 <input name="select[]" type="checkbox" value="3" />3 <input type="submit" value="submie" /> </form> |
<?php $array = $_POST["select"]; $select = implode(",", $array); echo $select; ?> |