html頁面:
<form method="post" action="checkTest.php">
<input name="test[]" type="checkbox" value="1" />
<input type="checkbox" name="test[]" value="2" />
<input type="checkbox" name="test[]" value="3" />
<input type="checkbox" name="test[]" value="4" />
<input type="checkbox" name="test[]" value="5" />
<input type="submit" name="Submit" value="Submit" />
</form>
獲取值:echo implode(",",$_POST['test']);
發(fā)表評論