All the content of this article only happend in Yii Framework!
As we know, with a form, we can both use post and get to send the data. But in Yii, when creating a form as below:
<?php echo CHtml::label('User','user01',array('class'=>'small'))?>
<?php echo CHtml::textField('search','',array('id'=>'user01','class'=>'sText'))?>
<?php echo CHtml::submitButton('Search',array('class'=>'butDef')); ?>
<?php echo CHtml::endForm(); ?>
after submited the form, we get nothing of the $_GET data! (except that we can get "r='user/index'").
but why, this form seems everything ok!
Then via google, i found the reason:
here is the way to resolve it, add the code to the form:
Have fun with Yii!