<form>
<input type="checkbox" name="item[]" value="1" />
<input type="checkbox" name="item[]" value="2" />
<input type="checkbox" name="item[]" value="3" />
</form>
<?php
$app = JFactory::getApplication();
$items = $_POST['type']; // This works but is not Joomla wise...
$items = $app->input->getArray(array('type_ids')); // Tried multiple ways but can't get it to work.
?>
将所有表单项加载到数组 $items 中的正确方法应该是什么?