need help, please…
I have a form and send the variabel from suratTugas1.php to coba1.php. but I can`t get the $_POST variable. the code are
suratTugas1.php
<?php echo $model->id; ?>
<?php echo CHtml::textField('Text'); ?>
<?php echo CHtml::button('submit',array('submit' => array('coba1', 'id'=>$model->id,'Text'=>$_POST['Text']))); ?>
</body>
</html>
in controller
function actionSuratTugas1($id){
$this->render('suratTugas1', array(
'model'=>$this->loadModel($id)));
}
function actionCoba1($id){
$this->renderPartial('coba1',array(
'model'=>$this->loadModel($id),'no'=>$_POST['Text']));
}