I have five text fields in my page and when the user types something in first textfield, I need to retrieve the values based on the first textfield. Right now, I have hardcode the value as 121, which is returning the value properly from DB, but how do I make it dynamic ?
<?php echo $form->textField(emp::model()->findByAttributes(array('id' => '121' )),'empno'); ?>