problem is identifying ajax requests

i am having two ajax request in a form when the first is clicked it is working correctly…when the second one is clicked it also also displays the result of the first along with second how do i avoid this problem…do someone help me

could you put your code?

<?php echo CHtml::form(); ?>

<?php echo CHtml::errorsummary($form);?>

<?php echo CHtml::dropDownList('standard',$std,CHtml::listdata(ClassMaster::model()->findAll(),'standard','standard'),array('ajax'=>array(

'type'=>'POST','url'=>CController::createUrl('exam/examconfigurationadd'),'update'=>'#test')));?></td>

<?php echo CHtml::dropDownList('section','',array(),array('prompt'=>'select…','ajax'=>array('type'=>'POST','url'=>CController::createUrl('exam/examconfigurationadd'),'update'=>'#subject')));?>

<?php echo CHtml::dropDownList('subject','',array(),array('prompt'=>'select…'));?>

and the code in action contoller is

if(Yii::app()->request->isAjaxRequest)

	{


		if(isset($_POST&#91;&#039;standard&#039;]))


		 {


			$section=CHtml::listData(ClassMaster::model()-&gt;findAll(&#039;standard=:standard&#039;,array(&#039;:standard&#039;=&gt;$_POST&#91;&#039;standard&#039;])),&#039;section&#039;,&#039;section&#039;);


			foreach($section as $value=&gt;$section)


			{


			echo CHtml::tag(&#039;option&#039;,


			array(&#039;value&#039;=&gt;$value),CHtml::encode($section),true);





			}


			





			}





			if(isset($_POST&#91;&#039;standard&#039;])&amp;&amp;($_POST&#91;&#039;section&#039;]!=&#039;null&#039;))


			{


			


			$id=ClassMaster::model()-&gt;find(&#039;standard=:standard and section=:section&#039;,


			array(&#039;:standard&#039;=&gt;$_POST&#91;&#039;standard&#039;],&#039;:section&#039;=&gt;$_POST&#91;&#039;section&#039;]));


			$standard=CHtml::listData(SubjectMaster::model()-&gt;findAll(&#039;classid=:classid&#039;,array(&#039;:classid&#039;=&gt;$id-&gt;id)),&#039;subjectname&#039;,&#039;subjectname&#039;);


			foreach($standard as $value=&gt;$standard)


			{


			echo CHtml::tag(&#039;option&#039;,


			array(&#039;value&#039;=&gt;$value),CHtml::encode($standard),true);


			}


			}