Код: Выделить всё
<?php $form = ActiveForm::begin();
$items = [201=>'Тест',202=>'Тест2'];
echo Html::dropDownList('list', 'null', $items);
?>
<div class="form-group">
<?= Html::a( ' Отправка', ['order/index', 'send_orders' => 6],['class' => 'btn btn-success btn-md glyphicon glyphicon-send']);?>
</div>
<?php ActiveForm::end(); ?>
Код: Выделить всё
if (Yii::$app->request->get('send_orders'))
{
$lk_number = $_POST['list'];
print_r($lk_number);exit();
}