im trying to create a text box and a button, and when the button is pressed, the input in the text box is passed to the next view. so far, ive been only able to write this
<?php echo CHtml::textField('text');
echo CHtml::button('Submit',array('submit' => array('site/result')));
which is pretty much just a plain button and text field. any help on what should i add to my code?